database

package
v0.0.0-...-39f199c Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Close() error
}

type MySQL

type MySQL struct {
	Database string
	User     string
	Password string
	Host     string
	Port     uint16
}

func (*MySQL) Open

func (s *MySQL) Open() (Database, error)

type Postgres

type Postgres struct {
	Database string
	User     string
	Password string
	Host     string
	Port     uint16
}

func (*Postgres) Open

func (p *Postgres) Open() (Database, error)

type SQLite3

type SQLite3 struct {
	// File to
	File string `yaml:"file"`
}

func (*SQLite3) Open

func (s *SQLite3) Open() (Database, error)

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

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