Commit ea10464
authored
Introduce an unsafe flag for using the new driver with SQLite <
WIP open for feedback and the flag name for discussion.
I came to the conclusion that a special flag with the word `UNSAFE`
might be the best solution here.
By default, the new driver would still throw the following error:
> The SQLite version 3.27.2 is not supported. Minimum required version
is 3.37.0.
But with the new flag, it could enable accessing a database created with
3.37.0 on older SQLite versions.
**An important consideration or TODO:**
In this form, it would serve a basic use case, which is opening an
existing database on an older SQLite for previews, including writing
data to the database.
However, any new `CREATE TABLE` statement would fail because of the use
of the `STRICT` keyword (`General error: 1 near "STRICT": syntax
error`). We could address that by omitting that keyword in this mode,
but maybe let's first determine whether there are use cases for it.
Resolves
#252.3.37.0 (#256)1 parent 488b8db commit ea10464
1 file changed
+42
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
493 | 528 | | |
494 | 529 | | |
495 | 530 | | |
| |||
0 commit comments