db

package
v0.0.0-...-edeb3c3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(dbPath string) (*dbx.DB, error)

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(filepath string, max_conn, max_idle_conn int) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) ConcurrentDB

func (db *DB) ConcurrentDB() *dbx.DB

func (*DB) ConnectLogger

func (db *DB) ConnectLogger()

func (*DB) CreateIndex

func (db *DB) CreateIndex(table, field string) error

func (*DB) CreateUniqueIndex

func (db *DB) CreateUniqueIndex(table, field string) error

func (*DB) DisconnectLogger

func (db *DB) DisconnectLogger()

func (*DB) NonConcurrentDB

func (db *DB) NonConcurrentDB() *dbx.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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