Skip to content

Instantly share code, notes, and snippets.

View olivebishop's full-sized avatar
🏠
Working from home

Olive Bishop olivebishop

🏠
Working from home
View GitHub Profile
// P.S. the real moeny is at the buttom of the file
import { getTableColumns, type Table } from "drizzle-orm";
/**
* Creates a column selector for a given Drizzle ORM table.
*
* This function allows for flexible selection and omission of columns from a table.
*
* @param table - The Drizzle ORM table to create a column selector for.