Skip to content

What is the correct time format of syncInterval (milliseconds or seconds)? #331

@ichabodcole

Description

@ichabodcole

Is the expected type format for syncInterval second or milliseconds? I believe it is seconds, but I'm seeing different formats depending on where I look. Below is the example given in the README for this repo, but in other docs it's in seconds.

export const turso = createClient({
    url: "file:local.db",
    syncUrl: process.env.TURSO_DATABASE_URL,
    authToken: process.env.TURSO_AUTH_TOKEN,
    syncInterval: 60000,
});

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