Skip to content

Expose createSqlitePersister in package for custom SQLite set-ups #168

@jamesgpearce

Description

@jamesgpearce

Discussed in #166

Originally posted by hdoro July 30, 2024
I'm trying to use Tinybase with Tauri. I can store my data as a simple custom persister that saves a JSON of the Tinybase store, but that has a bigger overhead as I'd be writing/reading the entire data at every operation.

Instead, I'd like to leverage SQLite's smartness via Tauri's SQL plugin. From reading the sqlite persisters' code, I can see it leverages an internal createSqlitePersister, which I imagine could handle tauri/sql's db.execute (syntax from sqlx)?

As that's an internal module, I can't access it, and it's too tied into the repo to simply copy and paste, so I haven't tried it yet - could it work? 🤔

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