Skip to content

Commit 84b5f31

Browse files
committed
document cs_encrypt force
1 parent 92ca509 commit 84b5f31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sql/021-config-functions.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,18 @@ AS $$
226226
$$ LANGUAGE plpgsql;
227227

228228

229+
230+
--
231+
--
232+
-- Marks the currently `pending` configuration as `encrypting`.
233+
--
234+
-- Validates the database schema and raises an exception if the configured columns are not of `jsonb` or `cs_encrypted_v1` type.
235+
--
236+
-- Accepts an optional `force` parameter.
237+
-- If `force` is `true`, the schema validation is skipped.
238+
--
239+
-- Raises an exception if the configuration is already `encrypting` or if there is no `pending` configuration to encrypt.
240+
--
229241
DROP FUNCTION IF EXISTS cs_encrypt_v1();
230242

231243
CREATE FUNCTION cs_encrypt_v1(force boolean DEFAULT false)

0 commit comments

Comments
 (0)