package
6.2.1
Repository: https://github.com/mgenware/go-packagex.git
Documentation: pkg.go.dev

# Functions

CheckOneRowAffected returns an error if rows affected does not not equal to 1.
CheckOneRowAffectedWithError checks a given error before calling CheckOneRowAffected.
CheckRowsAffected returns an error if rows affected does not equal to a given number.
GetLastInsertIDInt calls result.LastInsertId() and returns its result as int.
GetLastInsertIDInt64WithError checks a given error before calling GetLastInsertIDInt64.
GetLastInsertIDIntWithError checks a given error before calling GetLastInsertIDInt.
GetLastInsertIDUint calls result.LastInsertId() and returns its result as uint.
GetLastInsertIDUint64 calls result.LastInsertId() and returns its result as uint64.
GetLastInsertIDUint64WithError checks a given error before calling GetLastInsertIDUint64.
GetLastInsertIDUintWithError checks a given error before calling GetLastInsertIDUint.
GetLastInsertIDWithError checks a given error before calling GetLastInsertID.
GetRowsAffectedInt calls result.RowsAffected() and returns its result as int.
GetRowsAffectedInt64WithError checks a given error before calling GetRowsAffectedInt64.
GetRowsAffectedIntWithError checks a given error before calling GetRowsAffectedInt.
GetRowsAffectedUint calls result.RowsAffected() and returns its result as uint.
GetRowsAffectedUint64 calls result.RowsAffected() and returns its result as uint64.
GetRowsAffectedUint64WithError checks a given error before calling GetRowsAffectedUint64.
GetRowsAffectedUintWithError checks a given error before calling GetRowsAffectedUint.
GetRowsAffectedWithError checks a given error before calling GetRowsAffected.
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
No description provided by the author
No description provided by the author
No description provided by the author
Transact starts a database transaction and calls Commit() when no errors, otherwise Rollback() will be called.

# Interfaces

Queryable interface defines a set of methods shared by sql.DB and sql.Tx.
Scannable interface defines a set of methods shared by sql.Row and sql.Rows.