Savepoint
This commit is contained in:
parent
7db1a3456b
commit
02c483950c
45 changed files with 5136 additions and 256 deletions
14
lib/database/queries/catalog.js
Normal file
14
lib/database/queries/catalog.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import pg from "../postgres.js";
|
||||
// Imports
|
||||
import {
|
||||
insertQuery,
|
||||
selectWhereAnyQuery,
|
||||
updateWhereAnyQuery,
|
||||
} from "../pg-query.js";
|
||||
// Constants
|
||||
const table = "tests";
|
||||
// Queries
|
||||
export const getTests = () => {
|
||||
const query = `SELECT * from ${table}`;
|
||||
return pg.query(query);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue