Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Foreign Data Wrappers-like API? #489

Open
penberg opened this issue Dec 16, 2024 · 1 comment
Open

Foreign Data Wrappers-like API? #489

penberg opened this issue Dec 16, 2024 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@penberg
Copy link
Collaborator

penberg commented Dec 16, 2024

Postgres allows accessing other databases via its FDW API. For SQLite, there are things like

https://github.com/mergestat/dblite

and

https://github.com/frectonz/pglite-fusion

But perhaps Limbo can do something more native here?

@penberg penberg added enhancement New feature or request question Further information is requested labels Dec 16, 2024
@madejejej
Copy link
Contributor

IMO Clickhouse nailed it with table functions

Examples:

SELECT * FROM
file('test.csv', 'CSV', 'column1 UInt32, column2 UInt32, column3 UInt32')
LIMIT 2;

INSERT INTO TABLE FUNCTION
file('test.tsv', 'TSV', 'column1 UInt32, column2 UInt32, column3 UInt32')
VALUES (1, 2, 3), (3, 2, 1), (1, 3, 2)

SELECT *
FROM s3(
   'https://datasets-documentation.s3.eu-west-3.amazonaws.com/aapl_stock.csv',
   'CSVWithNames'
)
LIMIT 5;

SELECT name FROM mysql(`mysql{1|2|3}:3306`, 'mysql_database', 'mysql_table', 'user', 'password');

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants