This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { eq } from "drizzle-orm"; | |
import { type DrizzleD1Database } from "drizzle-orm/d1"; | |
import { type GenericTable, project } from "./db/schema"; | |
// This is what I'd like to use, which is defined with my schema. | |
// (See import above, though the rest of the file shouldn't be relevant.) | |
// type GenericTable = typeof <tableA> | typeof <tableB> | ... | |
// I also tried this, but it doesn't work either. | |
// const Tables = { |
OlderNewer