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: packages/drizzle/src/pg/index.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ const columnConfigMap = new Map<
36
36
37
37
/**
38
38
* Creates an encrypted column type for Drizzle ORM with configurable searchable encryption options.
39
-
*
39
+
*
40
40
* When data is encrypted, the actual stored value is an [EQL v2](/docs/reference/eql) encrypted composite type which includes any searchable encryption indexes defined for the column.
41
41
* Importantly, the original data type is not known until it is decrypted. Therefore, this function allows specifying
42
42
* the original data type via the `dataType` option in the configuration.
@@ -46,23 +46,23 @@ const columnConfigMap = new Map<
46
46
* @param name - The column name in the database
47
47
* @param config - Optional configuration for data type and searchable encryption indexes
48
48
* @returns A Drizzle column type that can be used in pgTable definitions
49
-
*
49
+
*
50
50
* ## Searchable Encryption Options
51
-
*
51
+
*
52
52
* - `dataType`: Specifies the original data type of the column (e.g., 'string', 'number', 'json'). Default is 'string'.
53
53
* - `freeTextSearch`: Enables free text search index. Can be a boolean for default options, or an object for custom configuration.
54
54
* - `equality`: Enables equality index. Can be a boolean for default options, or an array of token filters.
55
55
* - `orderAndRange`: Enables order and range index for sorting and range queries.
56
-
*
56
+
*
57
57
* See {@link EncryptedColumnConfig}.
58
58
*
59
59
* @example
60
60
* Defining a drizzle table schema for postgres table with encrypted columns.
61
-
*
61
+
*
62
62
* ```typescript
63
63
* import { pgTable, integer, timestamp } from 'drizzle-orm/pg-core'
64
64
* import { encryptedType } from '@cipherstash/drizzle/pg'
0 commit comments