Skip to content

Commit 53aee79

Browse files
authored
Merge pull request #293 from ethanpil/patch-1
Update SQLite quickstart.md to caution reserved words as column names
2 parents 860b442 + 0c61e2b commit 53aee79

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,18 @@ 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 any SQL reserved keywords such as `type` and `data` 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 [**SQL reserved words**](https://en.wikipedia.org/wiki/List_of_SQL_reserved_words).
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

62+
63+
5964
:::info[Important to note]
6065
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).
6166
:::

0 commit comments

Comments
 (0)