Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertAndGetLastID ¶
func InsertAndGetLastID(ctx context.Context, lastInsertID any, query string, args ...any) transaction.TxFn
InsertAndGetLastID helper which Usefully for sql query like this query := `INSERT INTO table (col1, col2) VALUES ($1, $2) RETURNING id`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.