Skip to content

Commit

Permalink
feat(select): add more join types
Browse files Browse the repository at this point in the history
  • Loading branch information
lundibundi committed Sep 29, 2023
1 parent 47cbd94 commit 1205359
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions types/lib/select-builder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ export class SelectBuilder extends QueryConditionsBuilder<
rightKey: string
): this;

innerJoinCond(tableName: string, condition: string): this;
innerJoinCond(tableName: string, condition: QueryBuilder | string): this;

innerJoinCondAs(tableName: string, alias: string, condition: string): this;
innerJoinCondAs(
tableName: string,
alias: string,
condition: QueryBuilder | string
): this;

leftJoin(tableName: string, leftKey: string, rightKey: string): this;

Expand All @@ -56,9 +60,13 @@ export class SelectBuilder extends QueryConditionsBuilder<
rightKey: string
): this;

leftJoinCond(tableName: string, condition: string): this;
leftJoinCond(tableName: string, condition: QueryBuilder | string): this;

leftJoinCondAs(tableName: string, alias: string, condition: string): this;
leftJoinCondAs(
tableName: string,
alias: string,
condition: QueryBuilder | string
): this;

rightJoin(tableName: string, leftKey: string, rightKey: string): this;

Expand All @@ -69,9 +77,13 @@ export class SelectBuilder extends QueryConditionsBuilder<
rightKey: string
): this;

rightJoinCond(tableName: string, condition: string): this;
rightJoinCond(tableName: string, condition: QueryBuilder | string): this;

rightJoinCondAs(tableName: string, alias: string, condition: string): this;
rightJoinCondAs(
tableName: string,
alias: string,
condition: QueryBuilder | string
): this;

fullJoin(tableName: string, leftKey: string, rightKey: string): this;

Expand All @@ -82,9 +94,13 @@ export class SelectBuilder extends QueryConditionsBuilder<
rightKey: string
): this;

fullJoinCond(tableName: string, condition: string): this;
fullJoinCond(tableName: string, condition: QueryBuilder | string): this;

fullJoinCondAs(tableName: string, alias: string, condition: string): this;
fullJoinCondAs(
tableName: string,
alias: string,
condition: QueryBuilder | string
): this;

naturalJoin(tableName: string): this;

Expand All @@ -106,7 +122,7 @@ export class SelectBuilder extends QueryConditionsBuilder<
kind: JoinKind,
tableName: string,
alias: string,
condition: string
condition: QueryBuilder | string
): this;

distinct(): this;
Expand Down

0 comments on commit 1205359

Please sign in to comment.