Skip to main content
Module

x/supabase/mod.ts>Transformers.convertCell

An isomorphic Javascript client for Supabase.
Go to Latest
variable Transformers.convertCell
import { Transformers } from "https://deno.land/x/supabase@1.3.1/mod.ts";
const { convertCell } = Transformers;

If the value of the cell is null, returns null. Otherwise converts the string value to the correct type.

Examples

convertCell('bool', 'true') //=> true

convertCell('int8', '10') //=> 10

convertCell('_int4', '{1,2,3,4}') //=> [1,2,3,4]

type

(type: string, value: RecordValue) => RecordValue