dbconfig

package
v2.0.0-...-08d8fda Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PgHost     = "localhost"
	PgPort     = 50901
	PgUser     = "jet"
	PgPassword = "jet"
	PgDBName   = "jetdb"
)

Postgres test database connection parameters

View Source
const (
	CockroachHost     = "localhost"
	CockroachPort     = 26257
	CockroachUser     = "jet"
	CockroachPassword = "jet"
	CockroachDBName   = "jetdb"
)

Postgres test database connection parameters

View Source
const (
	MySqLHost     = "127.0.0.1"
	MySQLPort     = 50902
	MySQLUser     = "jet"
	MySQLPassword = "jet"

	MariaDBHost     = "127.0.0.1"
	MariaDBPort     = 50903
	MariaDBUser     = "jet"
	MariaDBPassword = "jet"
)

MySQL test database connection parameters

Variables

View Source
var (
	SakilaDBPath     = repo.GetTestDataFilePath("/init/sqlite/sakila.db")
	ChinookDBPath    = repo.GetTestDataFilePath("/init/sqlite/chinook.db")
	TestSampleDBPath = repo.GetTestDataFilePath("/init/sqlite/test_sample.db")
)

sqllite

View Source
var CockroachConnectString = pgConnectionString(CockroachHost, CockroachPort, CockroachUser, CockroachPassword, CockroachDBName)

CockroachConnectString is Cockroach test database connection string

View Source
var PostgresConnectString = pgConnectionString(PgHost, PgPort, PgUser, PgPassword, PgDBName)

PostgresConnectString is PostgreSQL test database connection string

Functions

func MySQLConnectionString

func MySQLConnectionString(isMariaDB bool, dbName string) string

MySQLConnectionString is MySQL connection string for test database

Types

This section is empty.

Jump to

Keyboard shortcuts

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