drivers

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 14 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 {
	*sqlx.DB
	// contains filtered or unexported fields
}

func (*Base) Begin

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

func (*Base) Exec

func (this *Base) Exec(query string, args ...interface{}) (result contracts.Result, err error)

func (*Base) Get

func (this *Base) Get(dest interface{}, query string, args ...interface{}) (err error)

func (*Base) Query

func (this *Base) Query(query string, args ...interface{}) (results contracts.Collection, err error)

func (*Base) Select

func (this *Base) Select(dest interface{}, query string, args ...interface{}) (err 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