fn parse_show_create(show_create: &str) -> Result<Vec<AlterTableOption>>Expand description
Parses table options from the result of SHOW CREATE TABLE
An example of the result of SHOW CREATE TABLE:
+—––+––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––+
| Table | Create Table |
+—––+––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––+
| json | CREATE TABLE IF NOT EXISTS json (ts TIMESTAMP(3) NOT NULL, j JSON NULL, TIME INDEX (ts)) ENGINE=mito WITH(compaction.twcs.max_output_file_size = ‘1M’, compaction.type = ‘twcs’, ttl = ‘1day’) |
+—––+––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––+