tursodatabase / tursodatabase/libsql

Remote builder - Cloud Provider

Open
#1,835 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.