Skip to content

Doesn't sync initially? #118

Open
Open

Description

@taronomy

It seems libSQL doesn't sync on start even though readme says "Initial sync happens when you first connect". Agent says "connect never calls db.sync()".

Activity

  1. taronomy commented on Aug 6, 2026

    @taronomy
    Author

    The release of Turso on Turso Cloud made new DBs incompatible. (even though the DB is LibSQL, not Turso)

    Failed to build DB: sync error:
    json decode error: invalid type: string "v1", expected u32
    
  2. ocean commented on Sep 17, 2026

    @ocean
    Owner

    Sorry for the delay @taronomy - having a look at this now.

  3. ocean commented on Sep 19, 2026

    @ocean
    Owner

    @taronomy This should be fixed now with the PR #125 but I haven't done a release yet as I'm merging some other fixes, will let you know and close this when the next release comes out.

  4. added
    bugSomething isn't working
    rustPull requests that update rust code
    on Sep 19, 2026
  5. ocean commented on Sep 21, 2026

    @ocean
    Owner

    @taronomy On the second comment of yours about new Turso cloud compatibility: that invalid type: string "v1", expected u32 error is separate from the initial-sync fix in #125 and won't be resolved by it - it happens inside libSQL's own sync handshake, before any sync call, and affects databases created since Turso Cloud switched engines. libSQL's latest pre-release still carries the same handshake code, so a version bump is unlikely to help.

    Since libSQL is winding down in favour of Turso's new turso library, I'm exploring building a new Ecto adapter built on that, I'll let you know. There are some other Elixir libs that use the new turso library, but not at the full Ecto adapter level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrustPull requests that update rust code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions