Skip to content

Commit

Permalink
Merge pull request #188 from boostcampwm-2021/develop
Browse files Browse the repository at this point in the history
v4.0.2 merge
  • Loading branch information
jeongbbn authored Nov 29, 2021
2 parents cf00dc6 + 4879bae commit 753ff97
Show file tree
Hide file tree
Showing 48 changed files with 1,818 additions and 359 deletions.
775 changes: 775 additions & 0 deletions back-end/api-server/build/swagger.yaml

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions back-end/api-server/database/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ export const insertIntoTable = (table, into, values) => {
return connectionQuery(queryLine);
};

export const innerJoinTable = async (column, tableA, tableB, on = null, condition = null) => {
let queryLine = `SELECT ${column} FROM ${tableA} INNER JOIN ${tableB} ON ${on} `;
queryLine += condition ? `WHERE ${condition}` : ``;
export const innerJoinTable = async (
column,
tableA,
tableB,
on = null,
condition = null,
limit = null
) => {
let queryLine = `SELECT ${column} FROM ${tableA} INNER JOIN ${tableB} ON ${on}`;
queryLine += condition ? ` WHERE ${condition}` : ``;
queryLine += limit ? ` LIMIT ${limit}` : ``;
return connectionQuery(queryLine);
};

Expand Down
Loading

0 comments on commit 753ff97

Please sign in to comment.