helper

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL