database

package
v0.0.0-...-73ac6d8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDBURL

func BuildDBURL(configs Configs) string

Types

type Configs

type Configs struct {
	Host     string
	Name     string
	Password string
	Port     string
	SSLMode  string
	User     string
}

type Database

type Database struct {
	Cli *sql.DB
}

func NewClient

func NewClient(configs Configs) (*Database, error)

func (*Database) Create

func (d *Database) Create(name string) error

func (*Database) Drop

func (d *Database) Drop(name string) error

Jump to

Keyboard shortcuts

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