Function remove

  • Run a remove query on the database.

    Type Parameters

    Parameters

    • conn: PoolClient

      The connection to the database

    • table: string

      The table to remove from

    • where: { [K in string | number | symbol]?: T[K] }

      The where clause

    Returns Promise<void>

    using conn = await pool.connect();
    await remove(conn, "users", { id: 1 });