Skip to content

Add libsql support#404

Draft
jayvdb wants to merge 1 commit into
Electron100:masterfrom
jayvdb:libsql-server
Draft

Add libsql support#404
jayvdb wants to merge 1 commit into
Electron100:masterfrom
jayvdb:libsql-server

Conversation

@jayvdb

@jayvdb jayvdb commented Nov 1, 2025

Copy link
Copy Markdown
Collaborator

Closes #395

@jayvdb jayvdb changed the title Support libsql-server Add libsql support Nov 1, 2025
@jayvdb jayvdb mentioned this pull request Nov 1, 2025
@jayvdb jayvdb force-pushed the libsql-server branch 2 times, most recently from d7dfe1f to 405d3fc Compare November 1, 2025 22:01
Comment thread butane_core/src/db/mod.rs
Comment on lines +668 to +669
"libsql+http" => {
let value = value.replacen("libsql+http:", "http:", 1);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned on the issue, this bit is a bit odd.

Comment on lines -888 to +913
write!(w, " ON CONFLICT ({}) DO ", pkcol.name()).unwrap();
write!(
w,
" ON CONFLICT ({}) DO ",
helper::quote_reserved_word(pkcol.name())
)
.unwrap();

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes a bug in the sqlite impl

Comment thread butane_test_helper/src/libsql.rs Outdated
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.

libsql-server support

1 participant