From a5697e9cd0d02a93bb25dc311d40b395f9af23bc Mon Sep 17 00:00:00 2001 From: Sven Herrmann Date: Sat, 3 Aug 2024 19:59:42 +0200 Subject: [PATCH] refactor: Update database schema for encrypted columns This commit updates the README.md file to include an example of the database schema for storing encrypted data. It specifies that all columns intended for storing encrypted data must be of type `TEXT` in the database. The example provided demonstrates the creation of a table named "test" with two columns: "string" and "numbers", both of type `TEXT`. This change improves the clarity and consistency of the documentation regarding the database schema for encrypted columns. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index f8b8403..0fd7b92 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,13 @@ session.execute( sql"SELECT * FROM test".query(crypt.text ~ crypt.int4) ) ``` + +All columns intended for storing encrypted data must be of type `TEXT` in the database. + +e.g.: +```sql +CREATE TABLE test ( + string TEXT, + numbers TEXT +) +``` \ No newline at end of file