Skip to content

Commit

Permalink
refactor: Update database schema for encrypted columns
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ThatScalaGuy committed Aug 3, 2024
1 parent 8f6341a commit a5697e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
```

0 comments on commit a5697e9

Please sign in to comment.