selda- Multi-backend, high-level EDSL for interacting with SQL databases.

Safe HaskellNone



Unsafe operations giving the user unchecked low-level control over the generated SQL.



fun :: Text -> Col s a -> Col s b Source #

A unary operation. Note that the provided function name is spliced directly into the resulting SQL query. Thus, this function should ONLY be used to implement well-defined functions that are missing from Selda's standard library, and NOT in an ad hoc manner during queries.

fun2 :: Text -> Col s a -> Col s b -> Col s c Source #

Like fun, but with two arguments.

aggr :: Text -> Col s a -> Aggr s b Source #

Create a named aggregate function. Like fun, this function is generally unsafe and should ONLY be used to implement missing backend-specific functionality.

cast :: forall s a b. SqlType b => Col s a -> Col s b Source #

Cast a column to another type, using whichever coercion semantics are used by the underlying SQL implementation.

unsafeRowId :: Int -> RowID Source #

Create a row identifier from an integer. A row identifier created using this function is not guaranteed to be a valid row identifier. Do not use unless you are absolutely sure what you're doing.