Skip to content

Add concept of connections #459

@scsmithr

Description

@scsmithr

Summary

See https://www.notion.so/glaredb/Database-Objects-a7e52611154e40efabb7ac46bf0b2a76#fc55700503794ee6bdb784a4349f1768

Specifications

  • Ensure that this is a reasonable thing to do for the types of external tables we want to support in the future.
  • Add appropriate entries to the catalog.
  • Small refactor of creating external tables to use the new connections.

Rationale

Removes the need of specifying credentials every time an external table is added for a database. Also makes updating credentials easier (when we have support for that) since only one entry needs to be updated instead of multiple tables.

Impact

Will affect https://github.com/GlareDB/cloud/issues/431 and https://github.com/GlareDB/cloud/issues/473. Instead of executing one query, we'll need to execute two. However, doing these queries separately enables things like easily adding more that one table at a time, or even attaching an entire schema.

Tasks

  • Spec for statements based off of Materialize, Firebolt etc, FDW research
  • Implementation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions