sqlite

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Driver drivers.DBDriver = "sqlite"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Driver drivers.DBDriver `json:"driver"`
	File   string           `json:"file"`
	Debug  bool             `json:"debug"`
}

func (*Connection) GetDriver

func (i *Connection) GetDriver() drivers.DBDriver

func (*Connection) IsDebug

func (i *Connection) IsDebug() bool

func (*Connection) NewConnector

func (i *Connection) NewConnector(name string) (drivers.ConnectorInterface, error)

type SqliteConnector

type SqliteConnector struct {
	drivers.GormQuery
	// contains filtered or unexported fields
}

func NewSqliteConnector

func NewSqliteConnector(connection string, config *Connection) (*SqliteConnector, error)

func (*SqliteConnector) Connect

func (i *SqliteConnector) Connect() error

func (*SqliteConnector) GetConnection

func (i *SqliteConnector) GetConnection() string

func (*SqliteConnector) GetDB

func (i *SqliteConnector) GetDB() any

func (*SqliteConnector) GetDriver

func (i *SqliteConnector) GetDriver() drivers.DriverInterface

Jump to

Keyboard shortcuts

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