Safe Haskell | None |
---|---|
Language | Haskell2010 |
PgQuery.Internal.Parse
Synopsis
- data PgQueryProtobuf = PgQueryProtobuf {
- len :: !CSize
- protobufData :: !CString
- data PgQueryError = PgQueryError {}
- data PgQueryProtobufParseResult = PgQueryProtobufParseResult {}
- get_sql :: CString -> IO (Ptr PgQueryProtobufParseResult)
- free_sql :: Ptr PgQueryProtobufParseResult -> IO ()
- getProtobufParseResult :: String -> IO (Either String ByteString)
Documentation
data PgQueryProtobuf Source #
Data type corresponding to the following struct in 'pg_query.h':
typedef struct { size_t len; char* data; } PgQueryProtobuf;
Constructors
PgQueryProtobuf | |
Fields
|
Instances
Storable PgQueryProtobuf Source # | |
Defined in PgQuery.Internal.Parse Methods sizeOf :: PgQueryProtobuf -> Int # alignment :: PgQueryProtobuf -> Int # peekElemOff :: Ptr PgQueryProtobuf -> Int -> IO PgQueryProtobuf # pokeElemOff :: Ptr PgQueryProtobuf -> Int -> PgQueryProtobuf -> IO () # peekByteOff :: Ptr b -> Int -> IO PgQueryProtobuf # pokeByteOff :: Ptr b -> Int -> PgQueryProtobuf -> IO () # peek :: Ptr PgQueryProtobuf -> IO PgQueryProtobuf # poke :: Ptr PgQueryProtobuf -> PgQueryProtobuf -> IO () # | |
Show PgQueryProtobuf Source # | |
Defined in PgQuery.Internal.Parse Methods showsPrec :: Int -> PgQueryProtobuf -> ShowS # show :: PgQueryProtobuf -> String # showList :: [PgQueryProtobuf] -> ShowS # | |
Eq PgQueryProtobuf Source # | |
Defined in PgQuery.Internal.Parse Methods (==) :: PgQueryProtobuf -> PgQueryProtobuf -> Bool # (/=) :: PgQueryProtobuf -> PgQueryProtobuf -> Bool # |
data PgQueryError Source #
Data type corresponding to the following struct in 'pg_query.h':
typedef struct { char* message; // exception message char* funcname; // source function of exception (e.g. SearchSysCache) char* filename; // source of exception (e.g. parse.l) int lineno; // source of exception (e.g. 104) int cursorpos; // char in query at which exception occurred char* context; // additional context (optional, can be NULL) } PgQueryError;
Constructors
PgQueryError | |
Instances
Storable PgQueryError Source # | |
Defined in PgQuery.Internal.Parse Methods sizeOf :: PgQueryError -> Int # alignment :: PgQueryError -> Int # peekElemOff :: Ptr PgQueryError -> Int -> IO PgQueryError # pokeElemOff :: Ptr PgQueryError -> Int -> PgQueryError -> IO () # peekByteOff :: Ptr b -> Int -> IO PgQueryError # pokeByteOff :: Ptr b -> Int -> PgQueryError -> IO () # peek :: Ptr PgQueryError -> IO PgQueryError # poke :: Ptr PgQueryError -> PgQueryError -> IO () # | |
Show PgQueryError Source # | |
Defined in PgQuery.Internal.Parse Methods showsPrec :: Int -> PgQueryError -> ShowS # show :: PgQueryError -> String # showList :: [PgQueryError] -> ShowS # | |
Eq PgQueryError Source # | |
Defined in PgQuery.Internal.Parse |
data PgQueryProtobufParseResult Source #
Data type corresponding to the following struct in 'pg_query.h':
typedef struct { PgQueryProtobuf parse_tree; char* stderr_buffer; PgQueryError* error; } PgQueryProtobufParseResult;
Constructors
PgQueryProtobufParseResult | |
Fields
|
Instances
Storable PgQueryProtobufParseResult Source # | |
Defined in PgQuery.Internal.Parse Methods sizeOf :: PgQueryProtobufParseResult -> Int # alignment :: PgQueryProtobufParseResult -> Int # peekElemOff :: Ptr PgQueryProtobufParseResult -> Int -> IO PgQueryProtobufParseResult # pokeElemOff :: Ptr PgQueryProtobufParseResult -> Int -> PgQueryProtobufParseResult -> IO () # peekByteOff :: Ptr b -> Int -> IO PgQueryProtobufParseResult # pokeByteOff :: Ptr b -> Int -> PgQueryProtobufParseResult -> IO () # peek :: Ptr PgQueryProtobufParseResult -> IO PgQueryProtobufParseResult # poke :: Ptr PgQueryProtobufParseResult -> PgQueryProtobufParseResult -> IO () # | |
Show PgQueryProtobufParseResult Source # | |
Defined in PgQuery.Internal.Parse Methods showsPrec :: Int -> PgQueryProtobufParseResult -> ShowS # show :: PgQueryProtobufParseResult -> String # showList :: [PgQueryProtobufParseResult] -> ShowS # |
getProtobufParseResult :: String -> IO (Either String ByteString) Source #