ALTER BUCKET statement

The ALTER BUCKET statement can be used to modify an existing defined bucket.

SurrealQL Syntax

ALTER BUCKET [ IF EXISTS ] @name
[ READONLY | DROP READONLY ]
[ BACKEND @string | DROP BACKEND ]
[ PERMISSIONS @expression ]
[ COMMENT @string | DROP COMMENT ]
DEFINE BUCKET my_bucket BACKEND "memory";

ALTER BUCKET my_bucket COMMENT "Should we make this read-only too??";

Was this page helpful?