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

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

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

Update the isSaved status of a model and save the original value.

Parameters

model: Object

the model you want to change the status of

Returns

ModelValues | undefined