tursodatabase / tursodatabase/libsql
Remote builder - Cloud Provider
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.2k
- Forks
- 531
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 1
Description
Hi,
I'm wondering if its possible to configure a remote db with a cloud provider storage solution like Google Cloud Storage.
I'm currently attempting the following;
let bucket_url = "https://storage.googleapis.com/bucket_name/sqllite.db";
let auth_token = fetch_gcp_access_token("http://storage.googleapis.com").await.unwrap();
println!("{}", bucket_url);
println!("{}", auth_token);
match Builder::new_remote(bucket_url.to_string(), auth_token).build().await {
Ok(db) => {
println!("success");
match db.connect() {
Ok(conn) => {
match conn.query("select 1; select 1;", ()).await {
Ok(_) => todo!(),
Err(err) => println!("Error: {}", err),
}
}
Err(err) => println!("Error: {}", err),
}
},
Err(err) => println!("Error: {}", err),
}
I'm wondering if anyone has any success with this (or any other cloud storage provider)?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Builder::new_remote entry point and trace how the supplied Google Cloud Storage URL and access token are handled. Determine whether remote database storage supports this provider, then define the required implementation or documentation outcome and verify it with the relevant remote-builder behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, rust
- Domain
- cloud, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100