You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/how-to.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ You can also install EQL by running [the installation script](https://github.com
153
153
Once you have installed EQL, you can see what version is installed by querying the database:
154
154
155
155
```sql
156
-
SELECT eql_v1.version();
156
+
SELECT eql_v2.version();
157
157
```
158
158
159
159
This will output the version of EQL installed.
@@ -162,22 +162,22 @@ This will output the version of EQL installed.
162
162
163
163
In your existing PostgreSQL database, you store your data in tables and columns.
164
164
Those columns have types like `integer`, `text`, `timestamp`, and `boolean`.
165
-
When storing encrypted data in PostgreSQL with Proxy, you use a special column type called `eql_v1_encrypted`, which is [provided by EQL](#setting-up-the-database-schema).
166
-
`eql_v1_encrypted`is a container column type that can be used for any type of encrypted data you want to store or search, whether they are numbers (`int`, `small_int`, `big_int`), text (`text`), dates and times (`date`. `timestamp`), or booleans (`boolean`).
165
+
When storing encrypted data in PostgreSQL with Proxy, you use a special column type called `eql_v2_encrypted`, which is [provided by EQL](#setting-up-the-database-schema).
166
+
`eql_v2_encrypted`is a container column type that can be used for any type of encrypted data you want to store or search, whether they are numbers (`int`, `small_int`, `big_int`), text (`text`), dates and times (`date`. `timestamp`), or booleans (`boolean`).
167
167
168
168
Create a table with an encrypted column for `email`:
169
169
170
170
```sql
171
171
CREATE TABLE users (
172
172
id SERIAL PRIMARY KEY,
173
-
email eql_v1_encrypted
173
+
email eql_v2_encrypted
174
174
)
175
175
```
176
176
177
177
This creates a `users` table with two columns:
178
178
179
179
- `id`, an autoincrementing integer column that is the primary key for the record
180
-
- `email`, a `eql_v1_encrypted` column
180
+
- `email`, a `eql_v2_encrypted` column
181
181
182
182
There are important differences between the plaintext columns you've traditionally used in PostgreSQL and encrypted columns with CipherStash Proxy:
0 commit comments