Skip to content

Commit 6b5ced0

Browse files
committed
docs: add utc flag documentation
1 parent 531d79d commit 6b5ced0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎docs/docs/entity/1-entities.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ TypeORM supports both `vector` and `halfvec` column types across databases:
190190
- PostgreSQL: native `vector` type via pgvector extension
191191
- SAP HANA: alias for `real_vector` type
192192
- `halfvec` - stores vectors as 2-byte floats (half precision) for memory efficiency
193-
- PostgreSQL: native `halfvec` type via pgvector extension
193+
- PostgreSQL: native `halfvec` type via pgvector extension
194194
- SAP HANA: alias for `half_vector` type
195195

196196
You can specify the vector dimensions using the `length` option:
@@ -237,7 +237,7 @@ const results = await dataSource.query(
237237
)
238238
```
239239

240-
> **Note**:
240+
> **Note**:
241241
> - **PostgreSQL**: Vector columns require the `pgvector` extension to be installed. The extension provides the vector data types and similarity operators.
242242
> - **SAP HANA**: Vector columns require SAP HANA Cloud (2024Q1+) and a supported version of `@sap/hana-client`. Use the appropriate [vector similarity functions](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/vector-functions) for similarity searches.
243243
@@ -470,6 +470,7 @@ List of available options in `ColumnOptions`:
470470
- `hstoreType: "object"|"string"` - Return type of `HSTORE` column. Returns value as string or as object. Used only in [Postgres](https://www.postgresql.org/docs/9.6/static/hstore.html).
471471
- `array: boolean` - Used for postgres and cockroachdb column types which can be array (for example int[])
472472
- `transformer: { from(value: DatabaseType): EntityType, to(value: EntityType): DatabaseType }` - Used to marshal properties of arbitrary type `EntityType` into a type `DatabaseType` supported by the database. Array of transformers are also supported and will be applied in natural order when writing, and in reverse order when reading. e.g. `[lowercase, encrypt]` will first lowercase the string then encrypt it when writing, and will decrypt then do nothing when reading.
473+
- `utc: boolean` - Indicates if date values should be stored and retrieved in UTC timezone instead of local timezone. Only applies to `date` column type. Default value is `false` (uses local timezone for backward compatibility).
473474

474475
Note: most of those column options are RDBMS-specific and aren't available in `MongoDB`.
475476

0 commit comments

Comments
 (0)