sqlite3

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(name string) (*Adapter, Close, error)

NewAdapter returns a new Adapter instance

Types

type Adapter

type Adapter struct {
	DB *sqlx.DB
}

Adapter represents sqlite3 adapter

func (*Adapter) GetAllTableNames

func (a *Adapter) GetAllTableNames() ([]string, error)

GetAllTableNames returns all table names in database

func (*Adapter) GetTable

func (a *Adapter) GetTable(tableName string) (*db.Table, error)

GetTable returns table info

type Close

type Close func() error

Close represents function for close database

Jump to

Keyboard shortcuts

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