mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-11 15:52:55 +00:00
* feat: alter databaset ttl * fix: make clippy happy * feat: add unset database option * fix: happy ci * fix: happy clippy * chore: fmt toml * fix: fix header * refactor: introduce `AlterDatabaseKind` * chore: apply suggestions from CR * refactor: add unset database option support * test: add unit tests * test: add sqlness tests * feat: invalidate schema name value cache * Apply suggestions from code review * chore: fmt * chore: update error messages * test: add more test cases * test: add more test cases * Apply suggestions from code review * chore: apply suggestions from CR --------- Co-authored-by: WenyXu <wenymedia@gmail.com>
37 lines
767 B
SQL
37 lines
767 B
SQL
CREATE DATABASE alter_database;
|
|
|
|
SHOW CREATE DATABASE alter_database;
|
|
|
|
ALTER DATABASE alter_database SET 'ttl'='10s';
|
|
|
|
SHOW CREATE DATABASE alter_database;
|
|
|
|
ALTER DATABASE alter_database SET 'ttl'='20s';
|
|
|
|
SHOW CREATE DATABASE alter_database;
|
|
|
|
-- SQLNESS ARG restart=true
|
|
SHOW CREATE DATABASE alter_database;
|
|
|
|
ALTER DATABASE alter_database SET 'ttl'='';
|
|
|
|
SHOW CREATE DATABASE alter_database;
|
|
|
|
ALTER DATABASE alter_database SET 'ttl'='😁';
|
|
|
|
ALTER DATABASE alter_database SET '🕶️'='1s';
|
|
|
|
ALTER DATABASE alter_database SET 'ttl'='40s';
|
|
|
|
ALTER DATABASE alter_database UNSET 'ttl';
|
|
|
|
ALTER DATABASE alter_database UNSET '🕶️';
|
|
|
|
SHOW CREATE DATABASE alter_database;
|
|
|
|
-- SQLNESS ARG restart=true
|
|
SHOW CREATE DATABASE alter_database;
|
|
|
|
DROP DATABASE alter_database;
|
|
|