drivers

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 DollarNParamBindWrapper(sql string) (result string)

func PostgresSqlConnector

func PostgresSqlConnector(config contracts.Fields, events contracts.EventDispatcher) contracts.DBConnection

Types

type Base

type Base struct {
	support.Executor
	// contains filtered or unexported fields
}

func NewDriver added in v0.1.4

func NewDriver(db *sqlx.DB, dispatcher contracts.EventDispatcher) *Base

func WithWrapper added in v0.1.8

func WithWrapper(db *sqlx.DB, dispatcher contracts.EventDispatcher, wrapper func(string) string) *Base

func (*Base) Begin

func (base *Base) Begin() (contracts.DBTx, contracts.Exception)

func (*Base) Transaction

func (base *Base) Transaction(fn func(tx contracts.SqlExecutor) contracts.Exception) (e contracts.Exception)

type Clickhouse added in v0.1.5

type Clickhouse struct {
	support.Executor
}

func (Clickhouse) Begin added in v0.1.9

func (Clickhouse) Transaction added in v0.1.9

func (c Clickhouse) Transaction(f func(executor contracts.SqlExecutor) contracts.Exception) contracts.Exception

type Mysql

type Mysql struct {
	*Base
}

type PostgresSQL

type PostgresSQL struct {
	*Base
}

type Sqlite

type Sqlite struct {
	*Base
}

type TransactionException added in v0.2.0

type TransactionException = exceptions.Exception

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL