sqlite_scanner icon indicating copy to clipboard operation
sqlite_scanner copied to clipboard

Enable the use of SQLite data sources from remote locations

Open d33bs opened this issue 2 years ago • 1 comments

What happens?

Hello - thank you so much for the work on sqlite_scanner, it's amazing to use this through DuckDB!

Would it be possible to use DuckDB to query SQLite files from remote locations? For example, it'd be stellar to query a SQLite file stored on AWS S3 using DuckDB queries. It seems like this could involve efforts from the httpfs extension. That said, please don't hesitate to let me know if it'd be more appropriate to add an issue elsewhere!

To Reproduce

Below is a Pythonic demonstration of what one might be able to do if this issue were addressed (building on the example sqlite_scan queries within the docs):

import duckdb

duckdb.connect().execute(
    """
    /* install and load sqlite plugin for duckdb */
    INSTALL sqlite_scanner;
    LOAD sqlite_scanner;
    
    /* perform query on film table */
    SELECT * FROM sqlite_scan('s3://bucket-name/sakila.db', 'film');
    """
)

OS:

MacOS

SQLite Version:

3.37.0

DuckDB Version:

0.7.1

DuckDB Client:

Python

Full Name:

Dave Bunten

Affiliation:

University of Colorado

Have you tried this on the latest master branch?

  • [X] I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • [X] I agree

d33bs avatar Apr 11 '23 20:04 d33bs

Related https://github.com/duckdb/duckdb-wasm/issues/1213

jlarmstrongiv avatar Feb 11 '24 03:02 jlarmstrongiv