Documentation
¶
Index ¶
- type ClickHouse
- func (t *ClickHouse) Exec(ctx context.Context, query interface{}, args ...interface{}) error
- func (t *ClickHouse) GetDb() interface{}
- func (t *ClickHouse) Init(app interfaces.IService) error
- func (t *ClickHouse) Query(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *ClickHouse) Stop() error
- func (t *ClickHouse) String() string
- type Postgres
- func (t *Postgres) Exec(ctx context.Context, query interface{}, args ...interface{}) error
- func (t *Postgres) GetDb() interface{}
- func (t *Postgres) Init(app interfaces.IService) error
- func (t *Postgres) Query(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Postgres) Stop() error
- func (t *Postgres) String() string
- type Sqlite3
- func (t *Sqlite3) Exec(ctx context.Context, query interface{}, args ...interface{}) error
- func (t *Sqlite3) GetDb() interface{}
- func (t *Sqlite3) Init(app interfaces.IService) error
- func (t *Sqlite3) Query(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
- func (t *Sqlite3) Stop() error
- func (t *Sqlite3) String() string
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
Database string
User string
Password string
Hosts string
// contains filtered or unexported fields
}
func (*ClickHouse) Exec ¶ added in v0.0.5
func (t *ClickHouse) Exec(ctx context.Context, query interface{}, 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.IService) error
func (*ClickHouse) Query ¶ added in v0.0.5
func (t *ClickHouse) Query(ctx context.Context, query interface{}, model interface{}, args ...interface{}) 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 Postgres ¶
type Postgres struct {
Name string
Database string
URI string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.