drivers

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 (*Base) Begin

func (this *Base) Begin() (contracts.DBTx, error)

func (*Base) Transaction

func (this *Base) Transaction(fn func(tx contracts.SqlExecutor) error) (err error)

type Mysql

type Mysql struct {
	*Base
}

type PostgresSQL

type PostgresSQL struct {
	*Base
}

type Sqlite

type Sqlite struct {
	*Base
}

Jump to

Keyboard shortcuts

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