splitgraph / seafowl

Analytical database for data-driven Web applications 🪶
https://seafowl.io
Apache License 2.0
409 stars 9 forks source link

Implement multi-DB support in Seafowl #289

Closed gruuya closed 1 year ago

gruuya commented 1 year ago

Specifically, add support to scope down the session context to a particular database for a given statement/batch of statements. In other words cross-DB queries are not supported atm. This is done by extending the existing GET & POST routes to also support the prefixed /db-name/q[/query-hash] form, and then effectively switch the default database to the one provided.

Also contains the implementation of CREATE DATABASE statement.

The upload endpoint needs to be altered as well, but I plan on doing it in a separate PR.

Closes #288.