eorm

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 5 Imported by: 0

README

eorm

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Conn      *sql.DB
	Dialector dialect.Dialector
	Log       *elog.Log
}

func Open

func Open(dialector dialect.Dialector) (db *DB, err error)

func (*DB) Close

func (db *DB) Close()

func (*DB) NewSession

func (db *DB) NewSession() *session.Session

func (*DB) Tx

func (db *DB) Tx(f TxFunc) (result interface{}, err error)

type TxFunc

type TxFunc func(*session.Session) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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