Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSlice = errors.New("GetList dest must be a slice")
ErrNotSlice is returned when dest passed to Query.GetList is not a slice.
View Source
var ErrToSQLFail = errors.New("can't convert to raw sql query")
ErrToSQLFail is returned when query builder fails to convert query to raw sql
Functions ¶
func Connect ¶ added in v1.0.1
Connect establishes a connection to the database and initializes a connection pool.
func SampleFunc ¶
func SampleFunc() int
Types ¶
type Query ¶ added in v1.0.1
type Query interface { // Get retrieves a single row. Get(ctx context.Context, qb Sqlizer, dest any) error // GetList retrieves multiple rows. GetList(ctx context.Context, qb Sqlizer, dest any) error // Exec executes a query. Exec(ctx context.Context, qb Sqlizer) error // BeginTx begins a transaction. BeginTx(ctx context.Context) (Tx, error) }
Query defines interface for query runner.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.