Skip to content

Add libsql_open_sync_with_config #1566

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

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Add libsql_open_sync_with_config #1566

merged 1 commit into from
Jul 17, 2024

Conversation

haaawk
Copy link
Collaborator

@haaawk haaawk commented Jul 17, 2024

Expose interval sync in C bindings.

Fixes #1561

@penberg
Copy link
Collaborator

penberg commented Jul 17, 2024

I am fine with this, but curious to know if we can make the API simpler with a libsql_config struct. Is that something we can easily use from Go, for example?

@haaawk
Copy link
Collaborator Author

haaawk commented Jul 17, 2024

I am fine with this, but curious to know if we can make the API simpler with a libsql_config struct. Is that something we can easily use from Go, for example?

I would have to check. That would also require update to op-sqlite too.

@haaawk haaawk force-pushed the bindings_interval_sync branch 2 times, most recently from fe218ef to 70ddf74 Compare July 17, 2024 11:40
@haaawk haaawk changed the title Add libsql_open_sync_with_interval Add libsql_open_sync_with_config Jul 17, 2024
@haaawk
Copy link
Collaborator Author

haaawk commented Jul 17, 2024

Let me know if this looks better @penberg

@haaawk haaawk force-pushed the bindings_interval_sync branch from 70ddf74 to eb94416 Compare July 17, 2024 11:46
@haaawk
Copy link
Collaborator Author

haaawk commented Jul 17, 2024

I was able to switch go-libsql to use libsql_config and all the tests passed -> tursodatabase/go-libsql#32

@haaawk haaawk added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit 3ab820d Jul 17, 2024
18 checks passed
@haaawk haaawk deleted the bindings_interval_sync branch July 17, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Expose sync_interval parameter in libsql's C bindings
2 participants