Documentation ¶
Index ¶
- func ClickHouseConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection
- func DollarNParamBindWrapper(sql string) (result string)
- 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
- type TransactionException
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 DollarNParamBindWrapper ¶ added in v0.2.0
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 WithWrapper ¶ added in v0.1.8
func (*Base) Transaction ¶
type Clickhouse ¶ added in v0.1.5
func (Clickhouse) Begin ¶ added in v0.1.9
func (c Clickhouse) Begin() (contracts.DBTx, contracts.Exception)
func (Clickhouse) Transaction ¶ added in v0.1.9
func (c Clickhouse) Transaction(f func(executor contracts.SqlExecutor) contracts.Exception) contracts.Exception
type PostgresSQL ¶
type PostgresSQL struct {
*Base
}
type TransactionException ¶ added in v0.2.0
type TransactionException = exceptions.Exception
Source Files ¶
Click to show internal directories.
Click to hide internal directories.