sql

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MySQLURL added in v0.1.5

func MySQLURL(url string, user string, token string) string

func PostgresURL added in v0.1.5

func PostgresURL(url string, user string, token string) string

func SQL

func SQL(driver SQLType, url string, query string) ([]string, error)

func SQLUser

func SQLUser(driver SQLType, url string, service string, username string) (types.UserEntry, error)

func SQLWrite

func SQLWrite(driver SQLType, url string, user types.UserEntry, service string) error

Types

type SQLType

type SQLType string
const (
	MySQL    SQLType = "mysql"
	SQLite   SQLType = "sqlite3"
	Postgres SQLType = "postgres"
)

Jump to

Keyboard shortcuts

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