Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denodb/lib/model.ts>Model._formatField

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model._formatField
import { Model } from "https://deno.land/x/denodb@v1.4.0/lib/model.ts";

Format a field or an object of fields, following a field matching table. Defaulting to defaultCase or field otherwise.

Parameters

fieldMatching: FieldMatchingTable
field: string | { [fieldName: string]: any; }
optional
defaultCase: (field: string) => string

Returns

string | { [fieldName: string]: any; }