Skip to content
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

Remote builder - Cloud Provider #1835

Open
drandell opened this issue Nov 22, 2024 · 0 comments
Open

Remote builder - Cloud Provider #1835

drandell opened this issue Nov 22, 2024 · 0 comments

Comments

@drandell
Copy link

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)?

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

No branches or pull requests

1 participant