import * as pg from "pg"; import { query } from "./query"; import { IQueryArgs } from "./types"; export const returningClause = async (args: IQueryArgs & { pool: pg.Pool; dbUser?: string }): Promise => { args.sql.append(" RETURNING * "); return query(args); };