Skip to content

Add DropTable as DDL statement. #177

@giant0791

Description

@giant0791

Add the capability to drop tables via DDL statements:

students = Table('students', ...)
stmt = DropTable(students)
with engine.connect() as connection:
    connection.execute(stmt)

normlite has two representations of the same logical table:

  1. The user-facing Notion database (actual data)
  2. The system tables row (metadata / catalog)

These two objects are logically inseparable.

Dropping a table must transition both representations into the “dropped” state.

Consider the following rule to enforce:

There must be exactly one place in the codebase that transitions a table into the dropped state.

Metadata

Metadata

Assignees

Labels

featureGroup together issues making up a full feature. It creates a parent-child relation with its issues.

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions