Documentation ¶
Index ¶
- type ClickHouse
- func (t *ClickHouse) Exec(ctx context.Context, query string, args ...interface{}) error
- func (t *ClickHouse) GetDb() interface{}
- func (t *ClickHouse) Init(app interfaces.IEngine) error
- func (t *ClickHouse) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)
- func (t *ClickHouse) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)
- func (t *ClickHouse) Stop() error
- func (t *ClickHouse) String() string
- type ClickHouseConfig
- type Mock
- func (t *Mock) Exec(ctx context.Context, query string, args ...interface{}) error
- func (t *Mock) GetDb() interface{}
- func (t *Mock) Init(app interfaces.IEngine) error
- func (t *Mock) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)
- func (t *Mock) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)
- func (t *Mock) Stop() error
- func (t *Mock) String() string
- type MySQL
- func (t *MySQL) Exec(ctx context.Context, query string, args ...interface{}) error
- func (t *MySQL) GetDb() interface{}
- func (t *MySQL) Init(app interfaces.IEngine) error
- func (t *MySQL) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)
- func (t *MySQL) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)
- func (t *MySQL) Stop() error
- func (t *MySQL) String() string
- type MySQLConfig
- type PGSQLRows
- type Postgres
- func (t *Postgres) Exec(ctx context.Context, query string, args ...interface{}) error
- func (t *Postgres) GetDb() interface{}
- func (t *Postgres) Init(app interfaces.IEngine) error
- func (t *Postgres) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)
- func (t *Postgres) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)
- func (t *Postgres) Stop() error
- func (t *Postgres) String() string
- type PostgresConfig
- type Sqlite3
- func (t *Sqlite3) Exec(ctx context.Context, query string, args ...interface{}) error
- func (t *Sqlite3) GetDb() interface{}
- func (t *Sqlite3) Init(app interfaces.IEngine) error
- func (t *Sqlite3) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)
- func (t *Sqlite3) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)
- func (t *Sqlite3) Stop() error
- func (t *Sqlite3) String() string
- type Sqlite3Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickHouse ¶ added in v0.0.5
type ClickHouse struct { Name string Config ClickHouseConfig // contains filtered or unexported fields }
func NewClickHouse ¶ added in v0.0.9
func NewClickHouse(name string, cfg ClickHouseConfig) *ClickHouse
func (*ClickHouse) Exec ¶ added in v0.0.5
func (t *ClickHouse) Exec(ctx context.Context, query string, args ...interface{}) error
func (*ClickHouse) GetDb ¶ added in v0.0.5
func (t *ClickHouse) GetDb() interface{}
func (*ClickHouse) Init ¶ added in v0.0.5
func (t *ClickHouse) Init(app interfaces.IEngine) error
func (*ClickHouse) Query ¶ added in v0.0.5
func (t *ClickHouse) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)
func (*ClickHouse) QueryRow ¶ added in v0.0.6
func (t *ClickHouse) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)
func (*ClickHouse) Stop ¶ added in v0.0.5
func (t *ClickHouse) Stop() error
func (*ClickHouse) String ¶ added in v0.0.5
func (t *ClickHouse) String() string
type ClickHouseConfig ¶ added in v0.0.9
type Mock ¶ added in v0.3.0
type Mock struct { Name string // contains filtered or unexported fields }
type MySQL ¶ added in v0.0.9
type MySQL struct { Name string Config MySQLConfig // contains filtered or unexported fields }
func NewMySQL ¶ added in v0.0.9
func NewMySQL(name string, cfg MySQLConfig) *MySQL
type MySQLConfig ¶ added in v0.0.9
type MySQLConfig struct {
URI string `yaml:"uri"`
}
type Postgres ¶
type Postgres struct { Name string Config PostgresConfig // contains filtered or unexported fields }
func NewPostgres ¶ added in v0.0.9
func NewPostgres(name string, cfg PostgresConfig) *Postgres
type PostgresConfig ¶ added in v0.0.9
type PostgresConfig struct {
URI string `yaml:"uri"`
}
type Sqlite3 ¶
type Sqlite3 struct { Name string Config Sqlite3Config // contains filtered or unexported fields }
func NewSqlite3 ¶ added in v0.0.9
func NewSqlite3(name string, cfg Sqlite3Config) *Sqlite3
type Sqlite3Config ¶ added in v0.0.9
type Sqlite3Config struct {
Database string `yaml:"database"`
}
Click to show internal directories.
Click to hide internal directories.