Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web compatibility for powersync_sqlcipher #216

Open
sbeltran10 opened this issue Dec 2, 2024 · 2 comments
Open

Web compatibility for powersync_sqlcipher #216

sbeltran10 opened this issue Dec 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@sbeltran10
Copy link

Hello,

Loving the package so far but sadly cannot use powersync_sqlcipher for flutter web. Even when using:

import 'package:powersync_sqlcipher/sqlite3_common.dart';

I get the following:

.../AppData/Local/Pub/Cache/hosted/pub.dev/sqlcipher_flutter_libs-0.6.4/lib/sqlcipher_flutter_libs.dart:9:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
Context: The unavailable library 'dart:ffi' is imported through these packages:

    web_entrypoint.dart => package:my_app=> package:powersync_sqlcipher => package:powersync_core => package:sqlite_async => package:sqlite3 => dart:ffi
    web_entrypoint.dart => package:my_app=> package:powersync_sqlcipher => package:sqlcipher_flutter_libs => dart:ffi
    ...

Is there an ETA for enabling compatibility? Or perhaps am I doing something wrong?

@mugikhan
Copy link
Contributor

mugikhan commented Dec 2, 2024

Hey @sbeltran10, we do not currently support the web platform for the flutter package as it is not supported by the sqlcipher_flutter_libs package which we use to provide sqlcipher functionality.

This is something we are investigating but we don't have any timelines for when it will be ready.

@willsmanley
Copy link

is there another option like storing an unencrypted sqlite db in an encrypted indexedb for web?

i have a hipaa requirement so im willing to jump through some firey hoops to get encryption on web

btw thank you for the amazing service, this is a godsend

@kobiebotha kobiebotha added the enhancement New feature or request label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants