Module

Codegen

Package
purescript-supabase
Repository
i-am-the-slime/purescript-supabase

#ColumnInfo Source

type ColumnInfo = { format :: String, isRequired :: Boolean, itemFormat :: String, itemType :: String, name :: String, requiredForInsert :: Boolean, type :: String }

#RelationInfo Source

type RelationInfo = { name :: String, referencedTable :: String }

#RpcInfo Source

type RpcInfo = { name :: String, params :: Array RpcParamInfo, returnType :: String, returnsSet :: Boolean }

#RpcParamInfo Source

type RpcParamInfo = { format :: String, name :: String, type :: String }

#TableInfo Source

type TableInfo = { columns :: Array ColumnInfo, name :: String, relations :: Array RelationInfo }

#renderRpc Source

renderRpc :: Array TableInfo -> RpcInfo -> { docs :: Array (Doc Void), exports :: Array String }

#renderTable Source

renderTable :: Array TableInfo -> TableInfo -> { docs :: Array (Doc Void), exports :: Array String, psName :: String }

#toCamelCase Source

#toPascalCase Source