package
0.0.0-20250312140307-836afd7c42ad
Repository: https://github.com/domonda/go-sqldb.git
Documentation: pkg.go.dev

# Functions

Connection returns a generic sqldb.Connection implementation for an existing sql.DB connection.
ForEachRowCallFunc will call the passed callback with scanned values or a struct for every row.
No description provided by the author
No description provided by the author
FormatValue formats a value for debugging or logging SQL statements.
Insert a new row into table using the values.
InsertReturning inserts a new row into table using values and returns values from the inserted row listed in returning.
InsertStruct inserts a new row into table using the connection's StructFieldMapper to map struct fields to column names.
InsertUnique inserts a new row into table using the passed values or does nothing if the onConflict statement applies.
InsertUniqueStruct inserts a new row into table using the connection's StructFieldMapper to map struct fields to column names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QuoteLiteral quotes a 'literal' (e.g.
No description provided by the author
No description provided by the author
RowAsRows implements the methods of Rows for a Row as no-ops.
ScanRowsAsSlice scans all srcRows as slice into dest.
ScanStrings scans the values of a row as strings.
No description provided by the author
ScanValues returns the values of a row exactly how they are passed from the database driver to an sql.Scanner.
Update table rows(s) with values using the where statement with passed in args starting at $1.
UpdateReturningRow updates a table row with values using the where statement with passed in args starting at $1 and returning a single row with the columns specified in returning argument.
UpdateReturningRows updates table rows with values using the where statement with passed in args starting at $1 and returning multiple rows with the columns specified in returning argument.
UpdateStruct updates a row of table using the exported fields of rowStruct which have a `db` tag that is not "-".
UpsertStruct upserts a row to table using the exported fields of rowStruct which have a `db` tag that is not "-".
No description provided by the author
No description provided by the author
WrapNonNilErrorWithQuery wraps non nil errors with a formatted query if the error was not already wrapped with a query.

# Structs

CurrentRowScanner calls Rows.Scan without Rows.Next and Rows.Close.
RowScanner implements sqldb.RowScanner for a sql.Row.
RowsScanner implements sqldb.RowsScanner with Rows.
SingleRowScanner always uses the same Row.

# Interfaces

Row is an interface with the methods of sql.Rows that are needed for ScanStruct.
Rows is an interface with the methods of sql.Rows that are needed for ScanSlice.
No description provided by the author