Skip to content

@powersync/op-sqlite usage with App Groups #635

Closed
@a11rew

Description

@a11rew

Issue

The upstream op-sqlite package supports usage with iOS App Groups. Configuring the plist entry should have been enough to use @powersync/op-sqlite with App Groups too, however this package always provides a dbLocation param which overrides the location value that would have been computed by the op-sqlite package.

This package provides the default dbLocation param because as the comment correctly notes passing undefined/null causes the open function to fail. This happens because the open fn checks for property existence instead of the value being undefined/null and so the intended usage is to not add the location property to the options object to begin with. That'd allow the default dbLocation determination logic of the upstream package to kick in.

Solution

Not pass a location property in the options object in the open() call unless a user provided override is set. Have this working locally, happy to submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions