Skip to content

Commit

Permalink
Small documentation change
Browse files Browse the repository at this point in the history
  • Loading branch information
juanluispaz committed Oct 7, 2021
1 parent 4e19b3a commit 66ebf39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/supported-databases-with-extended-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DBConection extends TypeSafeSqliteConnection<'DBConnection'> { }

### Working with Date and Time in Sqlite

ts-sql-query offers you different strategies to handle date and time in the database compatible with [sqlite date and time functions](https://www.sqlite.org/lang_datefunc.html). To define the strategy to be used, you must overwrite the `getDateTimeFormat` function; this function receives as an argument the type of date to handle (`date`, `time`, `dateTime`) and returns the strategy to use for that specific case. In addition, there are two properties (`treatUnexpectedIntegerDateTimeAsJulian` and `treatUnexpectedStringDateTimeAsUTC`) that allow controlling how to deal with the cases when the expected format is not the one stored in the database. Example:
ts-sql-query offers you different strategies to handle date and time in the database compatible with [sqlite date and time functions](https://www.sqlite.org/lang_datefunc.html). To define the strategy to be used, you must overwrite the `getDateTimeFormat` function; this function receives as an argument the type of date to handle (`date`, `time`, `dateTime`) and returns the strategy to use for that specific case. In addition, there are three properties (`treatUnexpectedIntegerDateTimeAsJulian`, `treatUnexpectedStringDateTimeAsUTC`, and `unexpectedUnixDateTimeAreMilliseconds`) that allow controlling how to deal with the cases when the expected format is not the one stored in the database. Example:

```ts
import { SqliteConnection } from "ts-sql-query/connections/SqliteConnection";
Expand Down
2 changes: 1 addition & 1 deletion docs/supported-databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DBConection extends SqliteConnection<'DBConnection'> { }

### Working with Date and Time in Sqlite

ts-sql-query offers you different strategies to handle date and time in the database compatible with [sqlite date and time functions](https://www.sqlite.org/lang_datefunc.html). To define the strategy to be used, you must overwrite the `getDateTimeFormat` function; this function receives as an argument the type of date to handle (`date`, `time`, `dateTime`) and returns the strategy to use for that specific case. In addition, there are two properties (`treatUnexpectedIntegerDateTimeAsJulian` and `treatUnexpectedStringDateTimeAsUTC`) that allow controlling how to deal with the cases when the expected format is not the one stored in the database. Example:
ts-sql-query offers you different strategies to handle date and time in the database compatible with [sqlite date and time functions](https://www.sqlite.org/lang_datefunc.html). To define the strategy to be used, you must overwrite the `getDateTimeFormat` function; this function receives as an argument the type of date to handle (`date`, `time`, `dateTime`) and returns the strategy to use for that specific case. In addition, there are three properties (`treatUnexpectedIntegerDateTimeAsJulian`, `treatUnexpectedStringDateTimeAsUTC`, and `unexpectedUnixDateTimeAreMilliseconds`) that allow controlling how to deal with the cases when the expected format is not the one stored in the database. Example:

```ts
import { SqliteConnection } from "ts-sql-query/connections/SqliteConnection";
Expand Down

0 comments on commit 66ebf39

Please sign in to comment.