Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultKeySpace = "spot_prod" DefaultBaseLogTable = "spot_prod.base_log" BaseLogCreateTable = `` /* 829-byte string literal not displayed */ BaseLogAlterTableGCGraceSeconds = `ALTER TABLE %s.base_log WITH gc_grace_seconds = %d;` BaseLogCreateIndex = `CREATE INDEX IF NOT EXISTS idx_request_id ON %s.base_log (request_id);` LogMetaCreateTable = `` /* 686-byte string literal not displayed */ LogMetaCreateIndex = `CREATE INDEX IF NOT EXISTS idx_tags_entry ON %s.base_log_meta (ENTRIES(tags));` )
Variables ¶
This section is empty.
Functions ¶
func BaseLogWithOrgName ¶
func KeyspaceWithOrgName ¶
Keyspace的要求(https://stackoverflow.com/questions/29569443/cassandra-keyspace-name-with-hyphen) orgName 可能会不符合。其规则:^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$ 存在以数字为开头, 或者包含- ,以及大写的情况。需要特殊处理
Types ¶
type CassandraSchema ¶
func NewCassandraSchema ¶
func (*CassandraSchema) CreateDefault ¶
func (cs *CassandraSchema) CreateDefault() error
func (*CassandraSchema) Name ¶
func (cs *CassandraSchema) Name() string
Click to show internal directories.
Click to hide internal directories.