Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/cotton/src/utils/models.ts>findColumn

SQL Database Toolkit for Deno
Latest
function findColumn
import { findColumn } from "https://deno.land/x/cotton@v0.7.5/src/utils/models.ts";

Find a single column information from a model. This can be used to get select: false column which you cannot get from getColumns by default.

Parameters

modelClass: Function

the model class you want to get the information from.

propertyName: string

the column property key