Skip to content

Commit

Permalink
chore(store-sync): export internal table names (#3047)
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis authored Aug 20, 2024
1 parent 57bf8c3 commit 2bbec22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/store-sync/src/sqlite/internalTables.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { getTableName } from "drizzle-orm";
import { blob, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
import { address, asHex, json } from "./columnTypes";
import { PartialTable } from "./common";
Expand All @@ -23,3 +24,6 @@ export const mudStoreTables = sqliteTable("__mudStoreTables", {
// TODO: last block hash?
lastError: text("last_error"),
});

export const internalTables = [chainState, mudStoreTables];
export const internalTableNames = internalTables.map(getTableName);

0 comments on commit 2bbec22

Please sign in to comment.