Run an insert query on the database.
The connection to the database
The table to insert into
The data to insert
Optional
The columns to check for conflicts, if any
The inserted row
using conn = await pool.connect();const res = await insert(conn, "users", { name: "John Doe" }); Copy
using conn = await pool.connect();const res = await insert(conn, "users", { name: "John Doe" });
Run an insert query on the database.