File: alter_volume.sql

package info (click to toggle)
sqlfluff 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,000 kB
  • sloc: python: 106,131; sql: 34,188; makefile: 52; sh: 8
file content (16 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Rename a volume
ALTER VOLUME some_vol RENAME TO some_new_vol;

-- Transfer ownership of the volume to another user
ALTER VOLUME some_vol OWNER TO `alf@melmak.et`;
ALTER VOLUME some_vol OWNER TO my_group;

-- SET is allowed as an optional keyword
ALTER VOLUME some_vol SET OWNER TO `alf@melmak.et`;
ALTER VOLUME some_vol SET OWNER TO my_group;

-- Set and unset volume tags
ALTER VOLUME some_vol SET TAGS ('tag1'='value1');
ALTER VOLUME some_vol SET TAGS ('tag2'='value2', 'tag3'='value3');
ALTER VOLUME some_vol UNSET TAGS ('tag1');
ALTER VOLUME some_vol UNSET TAGS ('tag2', 'tag3');