sql_config_server

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect uint
const (
	DialectPostgres Dialect = iota
	DialectMysql
	DialectSqlite
)

type Option

type Option func(*sqlConfigServer)

func WithNamespace

func WithNamespace(ns string) Option

func WithTableCreation

func WithTableCreation(dialect Dialect) Option

type SqlConfigServer

type SqlConfigServer interface {
	env.ConfigServer
}

func NewSqlConfigServer

func NewSqlConfigServer(db *sql.DB, tableName string, opts ...Option) (SqlConfigServer, error)

Jump to

Keyboard shortcuts

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