Comments (7)
Sorry it seems I messed up basic web workers. Can you try to update to sqflite_common_ffi_web 0.4.3+1 just published?
Need to re-run:
$ dart run sqflite_common_ffi_web:setup --force
https://tk-demo-sqflite.web.app/
from sqflite.
@alextekartik Thank you for Updating... Will update the package and let within a day or two..
from sqflite.
@alextekartik Thanks for updating the package now its working fine in both android and windows. One more thing need to clarify how to overcome this error in console.
*** sqflite warning ***
You are changing sqflite default factory.
Be aware of the potential side effects. Any library using sqflite
will have this factory as the default for all operations.
*** sqflite warning ***
if (kIsWeb) {
// Change default factory on the web
sql.databaseFactory = databaseFactoryFfiWeb;
databaseFactoryOrNull = databaseFactoryFfiWeb; // Should I Add like this how to do it ?
dbPath = 'ultimate.db';
}
Kindly clarify, thank you in advance,
from sqflite.
im using like this is the correct ? Kindly let me know
import 'package:sqflite_common_ffi_web/sqflite_ffi_web.dart';
import 'package:sqflite/sqflite.dart' as sql;
if (kIsWeb) {
// Change default factory on the web
sql.databaseFactoryOrNull=null;
sql.databaseFactory = databaseFactoryFfiWeb;
dbPath = 'ultimate.db';
}
from sqflite.
Simply do:
import 'package:sqflite_common_ffi_web/sqflite_ffi_web.dart';
import 'package:sqflite/sqflite.dart' as sql;
if (kIsWeb) {
// Change default factory on the web
sql.databaseFactoryOrNull = databaseFactoryFfiWeb;
dbPath = 'ultimate.db';
}
from sqflite.
thank you @alextekartik . Opened issue is also fixed can i close the issue ?
from sqflite.
@DDSrivatsan Yes typically I let the person that created the issue closing it (otherwise I'll do it later). Thank you !
from sqflite.
Related Issues (20)
- Cursors HOT 1
- Support for .sql files HOT 2
- COLLATE NOCASE is not supporting in web build
- Update PRAGMA version in windows
- SQLite Upgrade? HOT 2
- ConflictAlgorithm.replace deletes the row with FOREIGN KEY ON DELETE CASCADE ON UPDATE NO ACTION
- power function not supported HOT 1
- Inserting a row after clearing a table is not working HOT 2
- Can you tell me the general area on how to create a stream/watch a table? HOT 3
- Possibility to create functions? HOT 1
- Not an error as an error HOT 2
- Android Blob Lookup Fixed? HOT 1
- java.lang.IllegalArgumentException: Invalid token limit HOT 3
- sqlflite web db not persistent HOT 2
- Cursor closed despite moveNext() returning true HOT 1
- Macos - SqfliteFfiException(sqlite_error: 14, , open_failed: SqliteException(14): while opening the database, bad parameter or other API misuse, bad parameter or other API misuse (code 21)}) HOT 2
- [typo] empy found HOT 1
- Problems updating data from an external database in SQLITE in Flutter. HOT 4
- Data does not update when I switch between databases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqflite.