convex-schema-parser-0.1.7.0: A type-safe client generator for Convex for both Rust and Python.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Schema.Parser

Synopsis

Documentation

data ParsedFile Source #

Instances

Instances details
Show ParsedFile Source # 
Instance details

Defined in Convex.Schema.Parser

Eq ParsedFile Source # 
Instance details

Defined in Convex.Schema.Parser

newtype Schema Source #

Constructors

Schema 

Fields

Instances

Instances details
Show Schema Source # 
Instance details

Defined in Convex.Schema.Parser

Eq Schema Source # 
Instance details

Defined in Convex.Schema.Parser

Methods

(==) :: Schema -> Schema -> Bool #

(/=) :: Schema -> Schema -> Bool #

data Table Source #

Constructors

Table 

Instances

Instances details
Show Table Source # 
Instance details

Defined in Convex.Schema.Parser

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #

Eq Table Source # 
Instance details

Defined in Convex.Schema.Parser

Methods

(==) :: Table -> Table -> Bool #

(/=) :: Table -> Table -> Bool #

data Index Source #

Constructors

Index 

Instances

Instances details
Show Index Source # 
Instance details

Defined in Convex.Schema.Parser

Methods

showsPrec :: Int -> Index -> ShowS #

show :: Index -> String #

showList :: [Index] -> ShowS #

Eq Index Source # 
Instance details

Defined in Convex.Schema.Parser

Methods

(==) :: Index -> Index -> Bool #

(/=) :: Index -> Index -> Bool #

data Field Source #

Constructors

Field 

Instances

Instances details
Show Field Source # 
Instance details

Defined in Convex.Schema.Parser

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

Eq Field Source # 
Instance details

Defined in Convex.Schema.Parser

Methods

(==) :: Field -> Field -> Bool #

(/=) :: Field -> Field -> Bool #

data ParserState Source #

Constructors

ParserState 

Instances

Instances details
Show ParserState Source # 
Instance details

Defined in Convex.Schema.Parser

Eq ParserState Source # 
Instance details

Defined in Convex.Schema.Parser

sanitizeUnionValues :: String -> String Source #

Sanitizes union literals. It might be that a union like this is defined: export const instruction_mime_type = v.union( v.literal("application/pdf"), v.literal("text/html"), v.literal("text/plain") );

And `applicationpdf` would be translated into a type `Applicationpdf`, which is invalid in most languages. After sanitization, it would become application_pdf.