Ivan Dlugos

Results 297 comments of Ivan Dlugos

Yes, that shouldn't be too hard to do. I've already thought about this a little a while back and how I've seen this done in Dart is: * extract interfaces...

Also a thing to consider: not all browsers [support IndexedDB](https://api.dart.dev/stable/2.10.5/dart-indexed_db/dart-indexed_db-library.html), so if we wanted to have a complete solution, we'll need (to do) something like https://pub.dev/packages/idb_shim

Since this would require API changes (switch to interfaces) we should try to prepare those prior to 1.0, with the actual implementation coming later as a minor release.

> if we'd have the lower-level implemented in Type-/JavaScript, we could use that for plain web apps too. notes: * to implement interaction with JavaScript (i.e. call a objectbox-js impelmentation...

> you may be able to call TypeScript just like JS As long as you write TypeScript just like JS, e.g. no generics (Box)

Turns out we don't actually need interfaces, just two variants of the concrete classes - the conditional import ensures the right implementation is imported. See #189

> SQLite solution looks more reliable than IndexDB. > Moor support Web with SQLite already. Do you have a reference for that? I don't know `moor` deeply but from a...

> 1. SQLite is **ACID** Correct, but sql-js isn't, being in-memory it's not durable.

> @richard457 commented in #190: > Found this [This](https://github.com/EPNW/web_ffi/) if it can be of help. ! (Responding here where the architecture discussion takes place.) That looks like a good approach...

Sync can be added to an existing database, but currently only to new entities. Changing existing entities brings up new issues (like how should the data be merged?) so it's...