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

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

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

Get the table name from a model.

Parameters

modelClass: Function

the model class you want to get the information from.

Returns

string