Skip to content

DB Backend: create new `CodeIntelDB` type

Warren Gifford requested to merge cc/code-intel-db into main

Created by: camdencheek

This mints a new CodeIntelDB interface that mirrors the pattern of InsightsDB and database.DB (which should probably be renamed FrontendDB).

The goal here is just to have a type that 1) communicates with the type that this is a handle to a DB with the insights schema, and 2) embeds basestore.ShareableStore so that we can make db handles more standardized.

Stacked on #37140

side note: since TransactableHandle is still not type-protected by schema, it might be cool to have TransactableHandle[T SchemaType] so it can't be accidentally shared with the wrong store 🤔

Test plan

There should be no behavior change. I'm depending on existing tests to verify this, but the pattern is well-exercised at this point.

Merge request reports

Loading