Documentation
¶
Overview ¶
init.go squeel
Created by karim-w on 10/07/2025.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Middleware ¶
type Middleware func( statement *Statement, )
type Pipeline ¶
type Pipeline interface {
Use(middleware ...Middleware)
Queryer
}
func NewPipeline ¶
type Queryer ¶
type Queryer interface {
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
}
Queryer is an interface that defines methods for executing SQL queries. It includes methods for executing commands that do not return rows, querying multiple rows, and querying a single row. This interface is designed to be implemented by types that
type SQL_OPERATION ¶
type SQL_OPERATION int64
type Statement ¶
type Statement struct {
Query string
Args []any
Rows *sql.Rows
Row *sql.Row
Result sql.Result
// contains filtered or unexported fields
}
func (*Statement) OperationType ¶
func (s *Statement) OperationType() SQL_OPERATION
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.