Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilPtrValue = errors.New("nil ptr value") ErrPtrValueMustBeAPointer = errors.New("ptr value must be a pointer") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) BeginTx ¶
BeginTx starts a transaction.
The provided context is used until the transaction is committed or rolled back. If the context is canceled, the sql package will roll back the transaction. [Tx.Commit] will return an error if the context provided to BeginTx is canceled.
The provided [TxOptions] is optional and may be nil if defaults should be used. If a non-default isolation level is used that the driver doesn't support, an error will be returned.
func (*DB) ExecContext ¶
ExecContext executes a query without returning any rows. The args are for any placeholder parameters in the query.
type RowsWithSQLRows ¶
func NewRowsWithSQLRows ¶
func NewRowsWithSQLRows(rows *sql.Rows) *RowsWithSQLRows
type RowsWithSlice ¶
type RowsWithSlice struct {
// contains filtered or unexported fields
}
func NewRowsWithSlice ¶
func NewRowsWithSlice(rows []interface{}) *RowsWithSlice
func (*RowsWithSlice) Close ¶
func (v *RowsWithSlice) Close() error
func (*RowsWithSlice) Err ¶
func (v *RowsWithSlice) Err() error
func (*RowsWithSlice) Next ¶
func (v *RowsWithSlice) Next() bool
func (*RowsWithSlice) Scan ¶
func (v *RowsWithSlice) Scan(dest ...any) error
Click to show internal directories.
Click to hide internal directories.