databases

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NO_DATABASE = DatabaseModule{
		Name:    "None",
		Package: "",
		ID:      "0",
	}
	MYSQL = DatabaseModule{
		Name:    "MySQL",
		Package: "github.com/go-sql-driver/mysql",
		ID:      "1",
	}
	POSTGRES = DatabaseModule{
		Name:    "Postgres",
		Package: "github.com/lib/pq",
		ID:      "2",
	}
	POSTGRES_PGX = DatabaseModule{
		Name:    "Postgres with PGX",
		Package: "github.com/jackc/pgx/v4",
		ID:      "3",
	}
	SQLITE = DatabaseModule{
		Name:    "SQLite",
		Package: "github.com/mattn/go-sqlite3",
		ID:      "4",
	}
	MONGODB = DatabaseModule{
		Name:    "MongoDB",
		Package: "go.mongodb.org/mongo-driver/mongo",
		ID:      "5",
	}
)

Functions

This section is empty.

Types

type DatabaseModule

type DatabaseModule struct {
	Name    string
	Package string
	ID      string
}

func GetDatabaseModuleById

func GetDatabaseModuleById(id string) DatabaseModule

Jump to

Keyboard shortcuts

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