Categorygithub.com/mgenware/mingru-go-lib
modulepackage
0.2.1
Repository: https://github.com/mgenware/mingru-go-lib.git
Documentation: pkg.go.dev

# README

mingru-go-lib

Build

Go helper library used in mingru generated code.

# Packages

No description provided by the author

# 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.
InputPlaceholders returns a number of SQL input placeholders (?) based on the given count.
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.

# Type aliases

No description provided by the author