const char *const RDB_TTL_DURATION_QUALIFIER = "ttl_duration";
/*
Qualifier name for a custom per partition ttl duration.
*/
const char *const RDB_TTL_COL_QUALIFIER = "ttl_col";
从 myrocks 源码中我们看到这两行,这正是定义 comment 的column
所以类似的sql语句类似
CREATE TABLE test.`linktable` (
`ttl_` bigint(13) unsigned NOT NULL DEFAULT '0'
) comment="ttl_duration=1,ttl_col=ttl_" ENGINE=RocksDB DEFAULT COLLATE=latin1_bin;