HomeSoftware Heritage

cassandra: Deduplicate table names

Description

cassandra: Deduplicate table names

This removes all table names from cassandra/cql.py, and gets them from
cassandra/schema.py instead.

When possible, this uses existing constants (BaseRow.TABLE), otherwise
it uses a function to compute these names.

This is needed to support schema migrations, as updating a table's
primary key requires creating a new table with a different name.

Details

Provenance
vlorentzAuthored on Apr 22 2021, 12:21 PM
vlorentzPushed on Apr 22 2021, 5:22 PM
Differential Revision
D5574: cassandra: Deduplicate table names
Parents
rDSTOa1fc5fb7143d: cassandra: Use prepared statements in extid_index_*
Branches
Unknown
Tags
Unknown
Build Status
Buildable 20937
Build 32492: test-and-buildJenkins console · Jenkins