connector

package
v0.0.0-...-2985b46 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	Connect(url string) *sql.DB
}

func PickConnector

func PickConnector(databaseName string) Connector

type Postgres

type Postgres struct {
}

func (*Postgres) Connect

func (pg *Postgres) Connect(url string) *sql.DB

type Sqlite

type Sqlite struct {
}

func (*Sqlite) Connect

func (pg *Sqlite) Connect(url string) *sql.DB

Jump to

Keyboard shortcuts

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