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

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

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

Get all column definitions from a model.

Parameters

modelClass: Function

the model class you want to get the information from.