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

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

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

Map a single record from the query builder result for creating a model.

Parameters

modelClass: Function

Returns

ModelValues