Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Get the primary key column information from a model.

Parameters

modelClass: Function

the model class you want to get the information from.