Support for Turso #4173
|
The connection to the turso database seems to consist out of the db URL and the the db auth token. diesel only allows the connection via one db URL with includes both. how can I connect my turso db with diesel? |
Replies: 3 comments 9 replies
|
I've never used turso, so I cannot answer that. The official answer here is: Diesel officially supports SQLite, PostgreSQL and MySQL as backends. These backends are tested and expected to work. Everything else is not supported. It might work or it might not, depending on what the other database does. If it doesn't work the correct way to make it work is to implement a custom connection type (maybe including a custom backend) that handles the specific requirements of that database as third party crate. |
|
Would also like to use Turso. I have a a serverless application that uses Turso as a database (generous free tier) or SQLite locally (during development). |
|
Hi guys, I was experimenting using diesel with both libsql and turso (pure rust). oxidezap/whatsapp-rust#330 this is a example of usage In this history is using only libsql instead original sqlite3: https://github.com/jlucaso1/libsqlite3-libsql-sys/tree/1089a98bfc0b5e25463c05d998efece02f05c250 and this is using pure turso (is with my turso fork to implement somethings in FFI): https://github.com/jlucaso1/libsqlite3-libsql-sys |
I've never used turso, so I cannot answer that.
The official answer here is: Diesel officially supports SQLite, PostgreSQL and MySQL as backends. These backends are tested and expected to work.
Everything else is not supported. It might work or it might not, depending on what the other database does. If it doesn't work the correct way to make it work is to implement a custom connection type (maybe including a custom backend) that handles the specific requirements of that database as third party crate.