This file contains hidden or 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
// 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. |