Documentation
¶
Index ¶
- func ClickHouseConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
- func MysqlConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
- func PostgresSqlConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
- func SqliteConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
- type Base
- type Clickhouse
- type Mysql
- type PostgresSQL
- type Sqlite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClickHouseConnector ¶ added in v0.1.5
func ClickHouseConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
func MysqlConnector ¶
func MysqlConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
func PostgresSqlConnector ¶
func PostgresSqlConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
func SqliteConnector ¶
func SqliteConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
Types ¶
type Base ¶
func NewDriver ¶ added in v0.1.4
func NewDriver(db *sqlx.DB, dispatcher contracts.EventDispatcher) *Base
func (*Base) Transaction ¶
func (this *Base) Transaction(fn func(tx contracts.SqlExecutor) error) (err error)
type Clickhouse ¶ added in v0.1.5
type Clickhouse struct {
*Base
}
type PostgresSQL ¶
type PostgresSQL struct {
*Base
}
Click to show internal directories.
Click to hide internal directories.