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 ¶
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
Click to show internal directories.
Click to hide internal directories.