16 lines
290 B
JavaScript
16 lines
290 B
JavaScript
|
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);
|
||
|
};
|
||
|
|