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 Option
- type Options
- type TablePrefix
- func (tp TablePrefix) AggregatingFeedbackTable() string
- func (tp TablePrefix) DocumentTable() string
- func (tp TablePrefix) FeedbackTable() string
- func (tp TablePrefix) ItemFeedbackTable() string
- func (tp TablePrefix) ItemsTable() string
- func (tp TablePrefix) Key(key string) string
- func (tp TablePrefix) LatestItemsTable() string
- func (tp TablePrefix) MessageTable() string
- func (tp TablePrefix) PointsTable() string
- func (tp TablePrefix) SetsTable() string
- func (tp TablePrefix) UserFeedbackTable() 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://" RedissClusterPrefix = "rediss+cluster://" )
Variables ¶
This section is empty.
Functions ¶
func AppendMySQLParams ¶
func AppendURLParams ¶
func NewGORMConfig ¶
Types ¶
type TablePrefix ¶
type TablePrefix string
func (TablePrefix) AggregatingFeedbackTable ¶
func (tp TablePrefix) AggregatingFeedbackTable() string
AggregatingFeedbackTable returns the aggregating feedback table.
func (TablePrefix) DocumentTable ¶
func (tp TablePrefix) DocumentTable() string
func (TablePrefix) FeedbackTable ¶
func (tp TablePrefix) FeedbackTable() string
func (TablePrefix) ItemFeedbackTable ¶
func (tp TablePrefix) ItemFeedbackTable() string
ItemFeedbackTable returns the materialized view of item feedback.
func (TablePrefix) ItemsTable ¶
func (tp TablePrefix) ItemsTable() string
func (TablePrefix) Key ¶
func (tp TablePrefix) Key(key string) string
func (TablePrefix) LatestItemsTable ¶
func (tp TablePrefix) LatestItemsTable() string
LatestItemsTable returns the materialized view for latest items.
func (TablePrefix) MessageTable ¶
func (tp TablePrefix) MessageTable() string
func (TablePrefix) PointsTable ¶
func (tp TablePrefix) PointsTable() string
func (TablePrefix) SetsTable ¶
func (tp TablePrefix) SetsTable() string
func (TablePrefix) UserFeedbackTable ¶
func (tp TablePrefix) UserFeedbackTable() string
UserFeedbackTable returns the materialized view of user feedback.
func (TablePrefix) UsersTable ¶
func (tp TablePrefix) UsersTable() string
func (TablePrefix) ValuesTable ¶
func (tp TablePrefix) ValuesTable() string
Click to show internal directories.
Click to hide internal directories.