- {"emer-reset", 0, 0, cmd_emer_reset, NULL, "", RW},
-
- /* Parameter commands. */
- {"get", 2, INT_MAX, cmd_get, NULL, "--if-exists,--id=", RO},
- {"list", 1, INT_MAX, cmd_list, NULL, "", RO},
- {"set", 3, INT_MAX, cmd_set, NULL, "", RW},
- {"add", 4, INT_MAX, cmd_add, NULL, "", RW},
- {"remove", 4, INT_MAX, cmd_remove, NULL, "", RW},
- {"clear", 3, INT_MAX, cmd_clear, NULL, "", RW},
- {"create", 2, INT_MAX, cmd_create, post_create, "--id=", RW},
- {"destroy", 1, INT_MAX, cmd_destroy, NULL, "--if-exists", RW},
- {"wait-until", 2, INT_MAX, cmd_wait_until, NULL, "", RO},
-
- {NULL, 0, 0, NULL, NULL, NULL, RO},
+ {"emer-reset", 0, 0, pre_cmd_emer_reset, cmd_emer_reset, NULL, "", RW},
+
+ /* Database commands. */
+ {"comment", 0, INT_MAX, NULL, NULL, NULL, "", RO},
+ {"get", 2, INT_MAX, pre_cmd_get, cmd_get, NULL, "--if-exists,--id=", RO},
+ {"list", 1, INT_MAX, pre_cmd_list, cmd_list, NULL,
+ "--if-exists,--columns=", RO},
+ {"find", 1, INT_MAX, pre_cmd_find, cmd_find, NULL, "--columns=", RO},
+ {"set", 3, INT_MAX, pre_cmd_set, cmd_set, NULL, "--if-exists", RW},
+ {"add", 4, INT_MAX, pre_cmd_add, cmd_add, NULL, "--if-exists", RW},
+ {"remove", 4, INT_MAX, pre_cmd_remove, cmd_remove, NULL, "--if-exists",
+ RW},
+ {"clear", 3, INT_MAX, pre_cmd_clear, cmd_clear, NULL, "--if-exists", RW},
+ {"create", 2, INT_MAX, pre_create, cmd_create, post_create, "--id=", RW},
+ {"destroy", 1, INT_MAX, pre_cmd_destroy, cmd_destroy, NULL,
+ "--if-exists,--all", RW},
+ {"wait-until", 2, INT_MAX, pre_cmd_wait_until, cmd_wait_until, NULL, "",
+ RO},
+
+ {NULL, 0, 0, NULL, NULL, NULL, NULL, RO},