backends

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Engine() string
	DSN() string
}

Backend is the database backend interface that must be implemented by all database backend.

type Mysql

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

func (Mysql) DSN

func (db Mysql) DSN() string

func (Mysql) Engine

func (db Mysql) Engine() string

type Postgresql

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

func (Postgresql) DSN

func (db Postgresql) DSN() string

func (Postgresql) Engine

func (db Postgresql) Engine() string

type Sqlite3

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

func NewSqlite3

func NewSqlite3(filePath string) *Sqlite3

func (Sqlite3) DSN

func (db Sqlite3) DSN() string

func (Sqlite3) Engine

func (db Sqlite3) Engine() string

Jump to

Keyboard shortcuts

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