db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQL

func NewMySQL(c MySQLConfig) (*sql.DB, error)

func NewSqlite

func NewSqlite(c SqliteConfig) (*sql.DB, error)

func NewTurso

func NewTurso(c TursoConfig) (*sql.DB, error)

Types

type MySQLConfig

type MySQLConfig struct {
	User     string
	Pass     string
	Database string
}

type SqliteConfig

type SqliteConfig struct {
	Path string
}

type TursoConfig

type TursoConfig struct {
	Database  string
	AuthToken string
}

Jump to

Keyboard shortcuts

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