You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtype{ColumnBaseConfig,ColumnDataType}from"drizzle-orm";import{MySqlColumn}from"drizzle-orm/mysql-core";exporttypeKyselifyView<Textends{_: {selectedFields: Record<string,MySqlColumn<ColumnBaseConfig<ColumnDataType,string>,object>>;};},>={[KinkeyofT["_"]["selectedFields"]]: T["_"]["selectedFields"][K]extendsMySqlColumn<
infer U,object>
? Uextends{data: infer D}
? D
: never
: never;};
Usage:
exportconstpocView=mysqlView("poc_view",{id: int("id").default(0).notNull(),}).existing();// .as(sql`SELECT id FROM poc_view`);exportinterfaceDatabase{acknowledge: KyselifyView<typeofpocView>;}
The text was updated successfully, but these errors were encountered:
You can add
Usage:
The text was updated successfully, but these errors were encountered: