You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Note: Sqlite uses a [dynamic type system](https://www.sqlite.org/datatype3.html), meaning that a column in sqlite can store values with different types. The option: `sqlite_all_varchar_option` is provided to scan such columns in Kùzu.
590
+
Usage:
591
+
```
592
+
`CALL sqlite_all_varchar_option=<OPTION>`
593
+
```
594
+
If `sqlite_all_varchar_option` is set to true, all sqlite columns will be treated and scanned as `VAR_CHAR` columns.
595
+
If `sqlite_all_varchar_option` is set to false, trying to scan a column with values incompatible with the specified data type will result in a runtime exception.
596
+
597
+
#### 4. Scan from SQLite tables
493
598
494
599
Finally, we can utilize the `LOAD FROM` statement to scan the `person` table.
495
600
@@ -514,7 +619,7 @@ Result:
514
619
---------------
515
620
```
516
621
517
-
#### 4. USE: Reference database without alias
622
+
#### 5. USE: Reference database without alias
518
623
519
624
You can use the `USE` statement for attached databases to use a default database name for future operations.
520
625
This can be used when reading from an attached database to avoid specifying the full database name
@@ -541,7 +646,7 @@ LOAD FROM person
541
646
RETURN *
542
647
```
543
648
544
-
#### 5. Copy data from SQLite tables
649
+
#### 6. Copy data from SQLite tables
545
650
546
651
One important use case of the external RDBMS extensions is to facilitate seamless data transfer from the external RDBMS to Kùzu.
547
652
In this example, we continue using the `university.db` database created in the last step, but this time,
@@ -564,7 +669,7 @@ If the schemas are not the same, e.g., `Person` contains only `name` property wh
564
669
COPY Person FROM (LOAD FROMuw.person RETURN name);
565
670
```
566
671
567
-
#### 6. Query the data in Kùzu
672
+
#### 7. Query the data in Kùzu
568
673
569
674
Finally, we can verify the data in the `Person` table in Kùzu.
570
675
@@ -587,7 +692,7 @@ Result:
587
692
------------------
588
693
```
589
694
590
-
#### 7. Clear attached database schema cache
695
+
#### 8. Clear attached database schema cache
591
696
592
697
To avoid redundantly retrieving schema information from attached databases, Kùzu maintains a schema cache
593
698
including table names and their respective columns and types. Should modifications occur in the schema
0 commit comments