Documentation ¶
Index ¶
- Constants
- func AppendMySQLParams(dsn string, params map[string]string) (string, error)
- func AppendURLParams(rawURL string, params []lo.Tuple2[string, string]) (string, error)
- func NewGORMConfig(tablePrefix string) *gorm.Config
- func ProbeMySQLIsolationVariableName(dsn string) (string, error)
- type TablePrefix
- func (tp TablePrefix) FeedbackTable() string
- func (tp TablePrefix) ItemsTable() string
- func (tp TablePrefix) Key(key string) string
- func (tp TablePrefix) SetsTable() string
- func (tp TablePrefix) SortedSetsTable() string
- func (tp TablePrefix) UsersTable() string
- func (tp TablePrefix) ValuesTable() string
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 AppendURLParams ¶ added in v0.4.5
func NewGORMConfig ¶ added in v0.4.6
func ProbeMySQLIsolationVariableName ¶ added in v0.4.5
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
Click to show internal directories.
Click to hide internal directories.