db

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Columns []string
View Source
var Conn *gorm.DB
View Source
var LocalDB *gorm.DB

Functions

func Connect added in v0.0.6

func Connect(name string)

func Databases added in v0.0.6

func Databases() []string

func History added in v0.0.4

func History() []string

func Port added in v0.0.4

func Port(d Driver) string

func Query added in v0.0.7

func Query(q string) ([]map[string]interface{}, error)

func SaveHistory added in v0.0.5

func SaveHistory(query string)

func Select added in v0.0.7

func Select(d string)

func Selected added in v0.0.7

func Selected() string

func Tables added in v0.0.7

func Tables() []string

func UserDBNames added in v0.0.4

func UserDBNames() []string

Types

type Driver added in v0.0.4

type Driver string
const (
	MariaDB    Driver = "mariadb"
	MySQL      Driver = "mysql"
	PostgreSQL Driver = "postgresql"
	SQLite     Driver = "sqlite"
)

Jump to

Keyboard shortcuts

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