|
10 | 10 | * `{ castAs, capabilities }` typeParams block — identical to what its PSL |
11 | 11 | * counterpart lowers to, so PSL- and TS-authored contracts emit |
12 | 12 | * byte-identical `contract.json`. There are NO options: the factory IS the |
13 | | - * capability set (`encryptedTextSearch` vs `encryptedText`, and so on). |
| 13 | + * capability set (`textSearch` vs `text`, and so on). |
14 | 14 | * |
15 | 15 | * ## v2: legacy `*V2` aliases |
16 | 16 | * |
@@ -120,50 +120,50 @@ function v3Authored<C extends AnyEncryptedV3Column>( |
120 | 120 | } |
121 | 121 |
|
122 | 122 | // Each factory has a DISTINCT return type (V3ColumnDescriptor<EncryptedXColumn>); |
123 | | -// `encryptedBigIntOrd()` is not assignable to `encryptedText()` and vice-versa. |
| 123 | +// `bigIntOrd()` is not assignable to `text()` and vice-versa. |
124 | 124 | // Note the stack factory names: bigint is `types.Bigint*` (not `BigInt*`). |
125 | 125 | // text family |
126 | | -export const encryptedText = v3Authored(types.Text) |
127 | | -export const encryptedTextEq = v3Authored(types.TextEq) |
128 | | -export const encryptedTextOrd = v3Authored(types.TextOrd) |
129 | | -export const encryptedTextMatch = v3Authored(types.TextMatch) |
130 | | -export const encryptedTextSearch = v3Authored(types.TextSearch) |
| 126 | +export const text = v3Authored(types.Text) |
| 127 | +export const textEq = v3Authored(types.TextEq) |
| 128 | +export const textOrd = v3Authored(types.TextOrd) |
| 129 | +export const textMatch = v3Authored(types.TextMatch) |
| 130 | +export const textSearch = v3Authored(types.TextSearch) |
131 | 131 | // integer |
132 | | -export const encryptedInteger = v3Authored(types.Integer) |
133 | | -export const encryptedIntegerEq = v3Authored(types.IntegerEq) |
134 | | -export const encryptedIntegerOrd = v3Authored(types.IntegerOrd) |
| 132 | +export const integer = v3Authored(types.Integer) |
| 133 | +export const integerEq = v3Authored(types.IntegerEq) |
| 134 | +export const integerOrd = v3Authored(types.IntegerOrd) |
135 | 135 | // smallint |
136 | | -export const encryptedSmallint = v3Authored(types.Smallint) |
137 | | -export const encryptedSmallintEq = v3Authored(types.SmallintEq) |
138 | | -export const encryptedSmallintOrd = v3Authored(types.SmallintOrd) |
| 136 | +export const smallint = v3Authored(types.Smallint) |
| 137 | +export const smallintEq = v3Authored(types.SmallintEq) |
| 138 | +export const smallintOrd = v3Authored(types.SmallintOrd) |
139 | 139 | // bigint |
140 | | -export const encryptedBigInt = v3Authored(types.Bigint) |
141 | | -export const encryptedBigIntEq = v3Authored(types.BigintEq) |
142 | | -export const encryptedBigIntOrd = v3Authored(types.BigintOrd) |
| 140 | +export const bigInt = v3Authored(types.Bigint) |
| 141 | +export const bigIntEq = v3Authored(types.BigintEq) |
| 142 | +export const bigIntOrd = v3Authored(types.BigintOrd) |
143 | 143 | // numeric |
144 | | -export const encryptedNumeric = v3Authored(types.Numeric) |
145 | | -export const encryptedNumericEq = v3Authored(types.NumericEq) |
146 | | -export const encryptedNumericOrd = v3Authored(types.NumericOrd) |
| 144 | +export const numeric = v3Authored(types.Numeric) |
| 145 | +export const numericEq = v3Authored(types.NumericEq) |
| 146 | +export const numericOrd = v3Authored(types.NumericOrd) |
147 | 147 | // real |
148 | | -export const encryptedReal = v3Authored(types.Real) |
149 | | -export const encryptedRealEq = v3Authored(types.RealEq) |
150 | | -export const encryptedRealOrd = v3Authored(types.RealOrd) |
| 148 | +export const real = v3Authored(types.Real) |
| 149 | +export const realEq = v3Authored(types.RealEq) |
| 150 | +export const realOrd = v3Authored(types.RealOrd) |
151 | 151 | // double |
152 | | -export const encryptedDouble = v3Authored(types.Double) |
153 | | -export const encryptedDoubleEq = v3Authored(types.DoubleEq) |
154 | | -export const encryptedDoubleOrd = v3Authored(types.DoubleOrd) |
| 152 | +export const double = v3Authored(types.Double) |
| 153 | +export const doubleEq = v3Authored(types.DoubleEq) |
| 154 | +export const doubleOrd = v3Authored(types.DoubleOrd) |
155 | 155 | // date |
156 | | -export const encryptedDate = v3Authored(types.Date) |
157 | | -export const encryptedDateEq = v3Authored(types.DateEq) |
158 | | -export const encryptedDateOrd = v3Authored(types.DateOrd) |
| 156 | +export const date = v3Authored(types.Date) |
| 157 | +export const dateEq = v3Authored(types.DateEq) |
| 158 | +export const dateOrd = v3Authored(types.DateOrd) |
159 | 159 | // timestamp |
160 | | -export const encryptedTimestamp = v3Authored(types.Timestamp) |
161 | | -export const encryptedTimestampEq = v3Authored(types.TimestampEq) |
162 | | -export const encryptedTimestampOrd = v3Authored(types.TimestampOrd) |
| 160 | +export const timestamp = v3Authored(types.Timestamp) |
| 161 | +export const timestampEq = v3Authored(types.TimestampEq) |
| 162 | +export const timestampOrd = v3Authored(types.TimestampOrd) |
163 | 163 | // boolean (storage-only) |
164 | | -export const encryptedBoolean = v3Authored(types.Boolean) |
| 164 | +export const boolean = v3Authored(types.Boolean) |
165 | 165 | // json (encrypted JSONB, ste_vec containment) |
166 | | -export const encryptedJson = v3Authored(types.Json) |
| 166 | +export const json = v3Authored(types.Json) |
167 | 167 |
|
168 | 168 | // --------------------------------------------------------------------------- |
169 | 169 | // v2 legacy aliases (verbatim pre-rename bodies, now named *V2) |
|
0 commit comments