storage

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MySQLPrefix        = "mysql://"
	MongoPrefix        = "mongodb://"
	MongoSrvPrefix     = "mongodb+srv://"
	PostgresPrefix     = "postgres://"
	PostgreSQLPrefix   = "postgresql://"
	ClickhousePrefix   = "clickhouse://"
	CHHTTPPrefix       = "chhttp://"
	CHHTTPSPrefix      = "chhttps://"
	SQLitePrefix       = "sqlite://"
	RedisPrefix        = "redis://"
	RedissPrefix       = "rediss://"
	RedisClusterPrefix = "redis+cluster://"
	OraclePrefix       = "oracle://"
)

Variables

This section is empty.

Functions

func AppendMySQLParams added in v0.4.5

func AppendMySQLParams(dsn string, params map[string]string) (string, error)

func AppendURLParams added in v0.4.5

func AppendURLParams(rawURL string, params []lo.Tuple2[string, string]) (string, error)

func NewGORMConfig added in v0.4.6

func NewGORMConfig(tablePrefix string) *gorm.Config

func ProbeMySQLIsolationVariableName added in v0.4.5

func ProbeMySQLIsolationVariableName(dsn string) (string, error)

Types

type TablePrefix added in v0.4.6

type TablePrefix string

func (TablePrefix) FeedbackTable added in v0.4.6

func (tp TablePrefix) FeedbackTable() string

func (TablePrefix) ItemsTable added in v0.4.6

func (tp TablePrefix) ItemsTable() string

func (TablePrefix) Key added in v0.4.6

func (tp TablePrefix) Key(key string) string

func (TablePrefix) SetsTable added in v0.4.6

func (tp TablePrefix) SetsTable() string

func (TablePrefix) SortedSetsTable added in v0.4.6

func (tp TablePrefix) SortedSetsTable() string

func (TablePrefix) UsersTable added in v0.4.6

func (tp TablePrefix) UsersTable() string

func (TablePrefix) ValuesTable added in v0.4.6

func (tp TablePrefix) ValuesTable() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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