Skip to content

Commit

Permalink
fix issue #1133
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Oct 12, 2024
1 parent e98ffb7 commit b49dd05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions sqflite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,4 @@ thread is blocked while in a transaction...
* [Notes about Desktop support](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/desktop_support.md)
* [Notes about Encryption support](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/encryption_support.md)
* [Notes about Web support](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/web_support.md)
* [Notes about SQLite versions](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/version.md) as some features may not be available depending on the SQLite version.
10 changes: 9 additions & 1 deletion sqflite/doc/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ which should give a version formatted like this:
3.22.0
```

Unfortunately the version of SQLite depends on the OS version.
Unfortunately the version of SQLite depends on the OS version as sqflite
uses the SQLite version available on the platform.

Some features may not be available depending on the SQLite version.
For example `UPSERT` statement (`INSERT INTO ..... ON CONFLICT UPDATE SET`) is only available starting from SQLite 3.24.0 so
is not available on iOS 11.0 or android 10 (API Level 29).
Check the [SQLite documentation](https://www.sqlite.org/lang_UPSERT.html) for more information on this topic.

And check the available SQLite version on the platform you are targeting.

You could get a more recent version using [`sqflite_common_ffi`](https://pub.dev/packages/sqflite_common_ffi).

Expand Down

0 comments on commit b49dd05

Please sign in to comment.