Skip to content

Commit ed4c705

Browse files
authored
Added bit more info + link to official docs
Added a bit more info on why to avoid and added an official link to see the full list of reserved keywords.
1 parent cf8900c commit ed4c705

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/ff-integrations/database/local-sql/quickstart.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,17 @@ If you don't yet have an SQLite database, you can easily create one using tools
4949

5050
For this example, we'll create a "Notes" table with `ID`, `Title`, `Details`, `DueDate`, and `IsCompleted` as columns.
5151

52+
:::warning
53+
It is advisable to avoid using SQLite reserved keywords as column names to prevent potential build errors or unexpected behavior. SQLite reserves certain words for its SQL syntax, and using these as identifiers without proper handling may cause issues. For a comprehensive list of reserved keywords, refer to the [SQLite documentation](https://sqlite.org/lang_keywords.html).
54+
:::
55+
5256
Here's how you can create and configure the database:
5357

5458
<div class="video-container"><iframe src="https://www.loom.
5559
com/embed/c5f43ee65e954df2856d78e035ab8bba?sid=fcaccfa1-fb0c-4f67-9953-d51e7227e596" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
56-
5760
<p></p>
5861

59-
:::caution
60-
Use caution when defining column names in SQLite databases. Some common reserved words such as `type` and `data` will cause build errors.
61-
:::
6262

63-
<p></p>
6463

6564
:::info[Important to note]
6665
SQLite does not have dedicated date-time or boolean data types. For storing date-time values like `DueDate`, we use the integer data type and represent the date-time as a [**UNIX timestamp**](https://www.unixtimestamp.com/). Similarly, for boolean values, such as checking if a note is completed, SQLite uses integers where `0` represents `false` (or not completed) and `1` represents `true` (or completed).

0 commit comments

Comments
 (0)