Documentation ¶
Index ¶
- type Execer
- type ExecerContext
- type Preparer
- type PreparerContext
- type QueryRower
- type QueryRowerContext
- type Queryer
- type QueryerContext
- type Scanner
- type SquareSql
- func (s *SquareSql) Exec(db Execer, name string, args ...interface{}) (sql.Result, error)
- func (s *SquareSql) ExecContext(ctx context.Context, db ExecerContext, name string, args ...interface{}) (sql.Result, error)
- func (s *SquareSql) Prepare(db Preparer, name string) (*sql.Stmt, error)
- func (s *SquareSql) PrepareContext(ctx context.Context, db PreparerContext, name string) (*sql.Stmt, error)
- func (s *SquareSql) Query(db Queryer, name string, args ...interface{}) (*sql.Rows, error)
- func (s *SquareSql) QueryContext(ctx context.Context, db QueryerContext, name string, args ...interface{}) (*sql.Rows, error)
- func (s *SquareSql) QueryMap() map[string]string
- func (s *SquareSql) QueryRow(db QueryRower, name string, args ...interface{}) (*sql.Row, error)
- func (s *SquareSql) QueryRowContext(ctx context.Context, db QueryRowerContext, name string, args ...interface{}) (*sql.Row, error)
- func (s *SquareSql) Raw(name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecerContext ¶
type ExecerContext interface {
ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
}
ExecerContext is an interface used by ExecContext.
type PreparerContext ¶
type PreparerContext interface {
PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
}
PreparerContext is an interface used by PrepareContext.
type QueryRower ¶
QueryRower is an interface used by QueryRow.
type QueryRowerContext ¶
type QueryRowerContext interface {
QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
}
QueryRowerContext is an interface used by QueryRowContext.
type QueryerContext ¶
type QueryerContext interface {
QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
}
QueryerContext is an interface used by QueryContext.
type SquareSql ¶
type SquareSql struct {
// contains filtered or unexported fields
}
func LoadFromFile ¶
func LoadFromString ¶
func (*SquareSql) ExecContext ¶
func (*SquareSql) PrepareContext ¶
func (*SquareSql) QueryContext ¶
func (*SquareSql) QueryRowContext ¶
Click to show internal directories.
Click to hide internal directories.