!^      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                                                                                                                   ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                                                                                                                                                       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~          !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None&',./12478=>?@ACHMNPSUVXkK   None&',./12478=>?@ACHMNPSUVXkU" beam-core,Support for NULLable Foreign Key references. data MyTable f = MyTable { nullableRef :: PrimaryKey AnotherTable (Nullable f) , ... } deriving (Generic, Typeable)See Columnar for more information.# beam-coreDnewtype mainly used to inspect the tag structure of a particular BeamableT. Prevents overlapping instances in some case. Usually not used in end-user code.$ beam-coreClass for all Beam backends% beam-coreNRequirements to marshal a certain type from a database of a particular backend"#$%$%#"None &',./12478=>?@ACHMNPSUVXk\' beam-coreParses a beam row. This should not fail, except in the case of an internal bug in beam deserialization code. If it does fail, this should throw a BeamRowParseError./ beam-core}An error that may occur when parsing a row. Contains an optional annotation of which column was being parsed (if available).3 beam-coreThe exact error encountered&'()*+-,./0123456789:;<+-,.)*;<3456789:/012&'(None&',-./12478=>?@ACHMNPSUVXko beam-coreCompare the first and second argument for nullable equality, if they are both not null, return the result of the third expressionSome backends, like  beam-postgresJ totally ignore the third result, because all equality there is sensible. beam-coreCompare the first and second argument for nullable equality, if they are both not null, return the result of the third expressionSome backends, like  beam-postgresJ totally ignore the third result, because all equality there is sensible. beam-coreIncluded so that we can easily write a Num instance, but not defined in SQL92. Implementations that do not support this, should use CASE .. WHEN .. beam-coreWhether or not the DELETE command supports aliases  beam-core0Type classes for syntaxes which can be displayed  beam-coreRender the syntax as a 0, representing the SQL expression it stands forr beam-coreSchema  beam-core Table name  beam-coreWith time zone  beam-coreWith time zone  beam-coreWHERE  beam-coreFields beam-core Where clause  beam-corehaving clause  beam-coreLIMIT  beam-coreOFFSET ^_`fedcabgihjponmlkqrsvutwyxz|{}~          }~z|{wyxsvutqrjponmlkgih`fedcab^_None&',./12478=>?@ACHMNPSUVXkv^_`abcdefghijmklnopqrstuvwxyz{|}~      !"#$%&'()*+,-./012345678967812345/0+,-."#$ !9%&'()*None&',./12478=>?@ACHMNPSUVXkJ : beam-core0Optional SQL2008 "BIGINT data type" T071 support< beam-core2Optional SQL2003 "NTH_VALUE function" T618 support> beam-coreCOptional SQL2003 "FIRST_VALUE and LAST_VALUE function" T616 supportA beam-core5Optional SQL2003 "LEAD and LAG function" T615 supportD beam-core.Optional SQL2003 "NTILE function" T614 supportW beam-core:Optional SQL2003 "Enhanced numeric functions" T621 supporti beam-core>Optional SQL2003 "BINARY AND VARBINARY data type" T021 supportl beam-core:Optional SQL2003 "Elementary OLAP operations" T611 supporto beam-core8Optional SQL2003 "Advanced OLAP operations" T612 supportw beam-core:Optional SQL2003 "Elementary OLAP operations" T611 support^_`abcdefghijmklnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}Dz{|wxystuvlmnopqrijkdefghabc^_`WXYZ[\]FGHIJKLMNOPQRSTUV>?@DE<=ABC:;} None &',./12478=>?@ACHMNPSUVXk ~          ~ None&',./12478=>?@ACHMNPSUVXk beam-core9Type class for things which are text-like in this backend beam-coreHFake backend that cannot deserialize anything, but is useful for testing beam-coreClass for all Beam SQL backends beam-core<A class that ties together a monad with a particular backendCProvided here is a low-level interface for executing commands. The 'run*': functions are wrapped by the appropriate functions in .This interface is very high-level and isn't meant to expose the full power of the underlying database. Namely, it only supports simple data retrieval strategies. More complicated strategies (for example, Postgres's COPYg) are supported in individual backends. See the documentation of those backends for more details. beam-coreRun a query determined by the given syntax, providing an action that will be called to consume the results from the database (if any). The action will get a reader action that can be used to fetch the next row. When this reader action returns e, there are no rows left to consume. When the reader action returns, the database result is freed. beam-coreRun the given command and don't consume any results. Useful for DML statements like INSERT, UPDATE, and DELETE, or DDL statements. beam-coreDRun the given command and fetch the unique result. The result is J if either no results are returned or more than one result is returned. beam-corejRun the given command, collect all the results, and return them as a list. May be more convenient than 1, but reads the entire result set into memory. beam-coreThe query to run beam-coreHReader action that will be called with a function to fetch the next rowo &'()*+-,./0123456789:;<^_`abcdefghijmklnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}3 None &',-./12478=>?@ACHMNPSUVXk beam-core The main syntax. A wrapper over None&',./12478=>?@ACHMNPSUVXkYs "#$%&'()*+-,./0123456789:;<^_`abcdefghijmklnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} None&',./12478=>?@ACHMNPSUVXkW      None &',./12478=>?@ACHMNPSUVXkpn( beam-core.Class to automatically unwrap nested Nullables beam-coreType-level representation of the naming strategy to use for defaulting Needed because primary keys should be named after the default naming of their corresponding table, not the names of the record selectors in the primary key (if any).  beam-coreProvides a number of introspection routines for the beam library. Allows us to "zip" tables with different column tags together. Always instantiate an empty  k instance for tables, primary keys, and any type that you would like to embed within either. See the  3https://tathougies.github.io/beam/user-guide/modelsmanual& for more information on embedding.# beam-core5The big Kahuna! All beam tables implement this class.]The kind of all table types is '(* -> *) -> *'. This is because all table types are actually table type constructorsD. Every table type takes in another type constructor, called the  column tagZ, and uses that constructor to instantiate the column types. See the documentation for 4.This class is mostly Generic-derivable. You need only specify a type for the table's primary key and a method to extract the primary key given the table.An example table: data BlogPostT f = BlogPost { _blogPostSlug :: Columnar f Text , _blogPostBody :: Columnar f Text , _blogPostDate :: Columnar f UTCTime , _blogPostAuthor :: PrimaryKey AuthorT f , _blogPostTagline :: Columnar f (Maybe Text) , _blogPostImageGallery :: PrimaryKey ImageGalleryT (Nullable f) } deriving Generic instance Beamable BlogPostT instance Table BlogPostT where data PrimaryKey BlogPostT f = BlogPostId (Columnar f Text) deriving Generic primaryKey = BlogPostId . _blogPostSlug instance Beamable (PrimaryKey BlogPostT)!We can interpret this as follows:The  _blogPostSlug,  _blogPostBody,  _blogPostDate, and _blogPostTagline fields are of types , , UTCTime , and 'Maybe Text' respectfully.Since  _blogPostSlug,  _blogPostBody,  _blogPostDate, _blogPostAuthor, must be provided (i.e, they cannot contain 7), they will be given SQL NOT NULL constraints. _blogPostTagline is declared  so ) will be stored as NULL in the database. _blogPostImageGallery1 will be allowed to be empty because it uses the " tag modifier.blogPostAuthor references the AuthorT( table (not given here) and is required.blogPostImageGallery references the  ImageGalleryTL table (not given here), but this relation is not required (i.e., it may be . See ").$ beam-coreA data type representing the types of primary keys for this table. In order to play nicely with the default deriving mechanism, this type must be an instance of .% beam-coreGiven a table, this should return the PrimaryKey from the table. By keeping this polymorphic over column, we ensure that the primary key values come directly from the table (i.e., they can't be arbitrary constants)& beam-core A form of table all fields '. Useful as a parameter to R$ when you only care about one table.' beam-core!Column tag that ignores the type.) beam-coreFThe regular Haskell version of the table. Equivalent to 'tbl Identity'* beam-coreRepresents a table that contains metadata on its fields. In particular, each field of type 'Columnar f a' is transformed into 'TableField table a'. You can get or update the name of each field by using the ^ lens.+ beam-coreMetadata for a field of type ty in table.|Essentially a wrapper over the field name, but with a phantom type parameter, so that it forms an appropriate column tag.Usually you use the S[ function to generate an appropriate naming convention for you, and then modify it with VF if necessary. Under this scheme, the field n be renamed using the  instance for + , or the \ function.- beam-coreuThe path that led to this field. Each element is the haskell name of the record field in which this table is stored.. beam-coreThe field name/ beam-coreLike , but with an intermediate 41 beam-corehIf you declare a function 'Columnar f a -> b' and try to constrain your function by a type class for f, GHC will complain, because f is ambiguous in 'Columnar f a'. For example, 'Columnar Identity (Maybe a) ~ Maybe a' and 'Columnar (Nullable Identity) a ~ Maybe a', so given a type 'Columnar f a', we cannot know the type of f.Thus, if you need to know f, you can instead use 10. Since its a newtype, it carries around the fG paramater unambiguously. Internally, it simply wraps 'Columnar f a'3 beam-coreA short type-alias for 4%. May shorten your schema definitions4 beam-coreBA type family that we use to "tag" columns in our table datatypes.This is what allows us to use the same table type to hold table data, describe table settings, derive lenses, and provide expressions.The basic rules are Columnar Identity x = x Thus, any Beam table applied to [ will yield a simplified version of the data type, that contains just what you'd expect.The " type is used when referencing $Ps that we want to include optionally. For example, if we have a table with a $, like the following }data BeamTableT f = BeamTableT { _refToAnotherTable :: PrimaryKey AnotherTableT f , ... }9we would typically be required to provide values for the $ embedded into  BeamTableT. We can use " to lift this constraint. data BeamTableT f = BeamTableT { _refToAnotherTable :: PrimaryKey AnotherTableT (Nullable f) , ... }Now we can use justRef and  nothingRef1 to refer to this table optionally. The embedded $ in _refToAnotherTable0 automatically has its fields converted into  using ". The last 4 rule is Columnar f x = f xUse this rule if you'd like to parameterize your table type over any other functor. For example, this is used in the query modules to write expressions such as 'TableT QExpr', which returns a table whose fields have been turned into query expressions.jThe other rules are used within Beam to provide lenses and to expose the inner structure of the data type.8 beam-coreWhen parameterized by this entity tag, a database type will hold meta-information on the Haskell mappings of database entities. Under the hood, each entity type is transformed into its <R type. For tables this includes the table name as well as the corresponding *', which provides names for each column.9 beam-coreRepresents a meta-description of a particular entityType. Mostly, a wrapper around 'DatabaseEntityDescriptor be entityType', but carries around the ; dictionary.D beam-core4An entity tag for tables. See the documentation for # or consult the  3https://tathougies.github.io/beam/user-guide/modelsmanual for more.L beam-coreYA newtype wrapper around 'Columnar f a -> Columnar f ' (i.e., an endomorphism between 4s over f). You usually want to use \ or the 7 instance to rename the field, when 'f ~ TableField'N beam-coreXA newtype wrapper around 'f e -> f e' (i.e., an endomorphism between entity types in f). You usually want to use X4 or another function to contstruct these for you.P beam-coreA helper data type that lets you modify a database schema. Converts all entities in the database into functions from that entity to itself.Q beam-core)Allows introspection into database types.VAll database types must be of kind '(* -> *) -> *'. If the type parameter is named f$, each field must be of the type of f& applied to some type for which an ; instance exists.The be type parameter is necessary so that the compiler can ensure that backend-specific entities only work on the proper backend.Entities are documented under  Database.Beam.Schema#entitiesthe corresponding section and in the 6http://tathougies.github.io/beam/user-guide/databases/manualR beam-core9Default derived function. Do not implement this yourself.DThe idea is that, for any two databases over particular entity tags f and g, if we can take any entity in f and g# to the corresponding entity in h" (in the possibly effectful monad m3), then we can transform the two databases over f and g to a database in h, within the monad m.EIf that doesn't make sense, don't worry. This is mostly beam internalS beam-coreNAutomatically provide names for tables, and descriptions for tables (using i ). Your database must implement U, and must be auto-derivable. For more information on name generation, see the 3https://tathougies.github.io/beam/user-guide/modelsmanualT beam-core Return a PV that does nothing. This is useful if you only want to rename one table. You can do RdbModification { tbl1 = modifyTable (\oldNm -> "NewTableName") tableModification }U beam-core*Return a table modification (for use with Xx) that does nothing. Useful if you only want to change the table name, or if you only want to modify a few fields. For example, (tableModification { field1 = "Column1" }Xis a table modification (where 'f ~ TableField tbl') that changes the column name of field1 to Column1.V beam-coreHModify a database according to a given modification. Most useful for 8z to change the name mappings of tables and fields. For example, you can use this to modify the default names of a table ,db :: DatabaseSettings MyDb db = defaultDbSettings `withDbModification` dbModification { -- Change default name "table1" to "Table_1". Change the name of "table1Field1" to "first_name" table1 = modifyTable (\_ -> "Table_1") (tableModification { table1Field1 = "first_name" } }W beam-coreIModify a table according to the given field modifications. Invoked by Xm to apply the modification in the database. Not used as often in user code, but provided for completeness.X beam-core Provide an N for Ds. Allows you to modify the name of the table and provide a modification for each field in the table. See the examples for V for more.Y beam-core Construct an N to rename any database entityZ beam-core?Change the entity name without consulting the beam-assigned one[ beam-core Construct an N to rename the fields of a D\ beam-coreAA field modification to rename the field. Also offered under the H instance for 'FieldModification (TableField tbl) a' for convenience.^ beam-core<Van Laarhoven lens to retrieve or set the field name from a +.h beam-core Synonym for %i beam-core Return a * for the appropriate tableG type where each column has been given its default name. See the  3https://tathougies.github.io/beam/user-guide/modelsmanual5 for information on the default naming convention. beam-core8Camel casing magic for standard beam record field names.nAll leading underscores are ignored. If what remains is camel-cased beam will convert it to use underscores instead. If there are any underscores in what remains, then the entire name (minus the leading underscares). If the field name is solely underscores, beam will assume you know what you're doing and include the full original name as the field namej beam-core6Produce the beam default field name for the given pathg"# !"#$%&'()*+,-./0123456789:;<>=?@A<BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij[QR8;<>=?@A9:DCB]PNOLMTUVWXYZ[\SEFGHIJK7564312/0"+,-.#^_*)&'(defg#$% !"i`habcjNone &',-./12478=>?@ACHMNPSUVXki beam-core}Automatically deduce lenses for a table over any column tag. lenses at global level by doing a top-level pattern match on 9, replacing every column in the pattern with `LensFor  nameOfLensForFieldc'. The lenses are generated per-column, not per field in the record. Thus if you have nested  3 types, lenses are generated for each nested field. For example, Hdata AuthorT f = AuthorT { _authorEmail :: Columnar f Text , _authorFirstName :: Columnar f Text , _authorLastName :: Columnar f Text } deriving Generic data BlogPostT f = BlogPost { _blogPostSlug :: Columnar f Text , _blogPostBody :: Columnar f Text , _blogPostDate :: Columnar f UTCTime , _blogPostAuthor :: PrimaryKey AuthorT f , _blogPostTagline :: Columnar f (Maybe Text) } deriving Generic instance Table BlogPostT where data PrimaryKey BlogPostT f = BlogPostId (Columnar f Text) primaryKey = BlogPostId . _blogPostSlug instance Table AuthorT where data PrimaryKey AuthorT f = AuthorId (Columnar f Text) primaryKey = AuthorId . _authorEmail BlogPost (LensFor blogPostSlug (LensFor blogPostBody) (LensFor blogPostDate) (AuthorId (LensFor blogPostAuthorEmail)) (LensFor blogPostTagLine) = tableLensesoNote: In order to have GHC deduce the right type, you will need to turn off the monomorphism restriction. This is a part of the Haskell standard that specifies that top-level definitions must be inferred to have a monomorphic type. However, lenses need a polymorphic type to work properly. You can turn off the monomorphism restriction by enabling the NoMonomorphismRestriction7 extension. You can do this per-file by using the {-$ LANGUAGE NoMonomorphismRestriction ;-} pragma at the top of the file. You can also pass the -XNoMonomorphismRestriction0 command line flag to GHC during compilation. beam-coreLike % but for types that are instances of Q$. Instead of pattern matching on 5, pattern match on . None&',./12478=>?@ACHMNPSUVXk&" #$%)*+13456789DLNPQSTUVWXYZ[\^hi&Q89D#$% ih431"+^*)SPNLVWTUX\ZY[756None &',./12478=>?@ACHMNPSUVXk beam-coreTypeclass for all haskell data types that can be used to create a projection in a SQL select statement. This includes all tables as well as all tuple classes. Projections are only defined on tuples up to size 5. If you need more, follow the implementations here. beam-core2s represent expressions not containing aggregates. beam-coreEThe type of lifted beam expressions that will yield the haskell type t.context^ is a type-level representation of the types of expressions this can contain. For example, < represents expressions that may contain aggregates, and , represents expressions that may contain OVER.syntaxI is the expression syntax being built (usually a type that implements  at least, but not always).s. is a state threading parameter that prevents s from incompatible sources to be combined. For example, this is used to prevent monadic joins from depending on the result of previous joins (so-called LATERAL joins). beam-core&The type of queries over the database db returning results of type a. The sD argument is a threading argument meant to restrict cross-usage of s. syntax7 represents the SQL syntax that this query is building. beam-coresuitable as argument to  in the case of a table resultVVNone &',./12478=>?@ACHMNPSUVXk: beam-coreWhich ! to use to build this select. If , use the default< beam-coreQConvenience functions to construct an arbitrary SQL92 select syntax type from a :. Used by most backends as the default implementation of  buildSqlQuery in  HasQBuilder. beam-coreLIMIT  beam-coreOFFSET < beam-coreHWhether this backend supports arbitrary nested UNION, INTERSECT, EXCEPT  beam-core Table prefix <<None&',./12478=>?@ACHMNPSUVXkp >?@A A@>?None&',./12478=>?@ACHMNPSUVXkſ C beam-core Phantom type representing a SQL  Tri-state$ boolean -- true, false, and unknowncThis type has no values because it cannot be sent to or retrieved from the database directly. Use isTrue_, isFalse_,  isNotTrue_,  isNotFalse_,  isUnknown_,  isNotUnknown_, and  unknownAs_ to retrieve the corresponding  value.D beam-coreSQL AND operatorE beam-coreSQL OR operatorF beam-coreSQL AND operator for CG beam-coreSQL OR operatorH beam-coreSQL LIKE operatorI beam-coreSQL99  SIMILAR TO operatorJ beam-coreSQL NOT operatorK beam-coreSQL NOT operator, but operating on C insteadL beam-coreSQL / operatorM beam-coreSQL % operatorN beam-coreSQL CONCAT function CDEFGHIJKLMND3E2F3G2H4I4L7M7None&',./12478=>?@ACHMNPSUVXk#O beam-coreClass for things which can be  quantifiably compared.T beam-core_Class for expression types or expression containers for which there is a notion of ordering.Instances are provided to check the ordering of expressions of the same type. Since there is no universal notion of ordering for an arbitrary number of expressions, no instance is provided for   types. beam-coreFConstraint synonym to check if two tables can be compared for equalityY beam-coreYClass for Haskell types that can be compared for quantified equality in the given backend\ beam-coreNClass for Haskell types that can be compared for equality in the given backend_ beam-coreTri-state equality` beam-coreTri-state equalitya beam-core:Class for expression types for which there is a notion of  quantified equality.b beam-core)Quantified equality and inequality using  SQL semantics (tri-state boolean)c beam-core)Quantified equality and inequality using  SQL semantics (tri-state boolean)d beam-core_Class for expression types or expression containers for which there is a notion of equality.bInstances are provided to check the equality of expressions of the same type as well as entire   types parameterized over e beam-coregGiven two expressions, returns whether they are equal, using Haskell semantics (NULLs handled properly)f beam-corekGiven two expressions, returns whether they are not equal, using Haskell semantics (NULLs handled properly)g beam-core#Given two expressions, returns the SQL tri-state boolean when compared for equalityh beam-core#Given two expressions, returns the SQL tri-state boolean when compared for inequalityi beam-coreMA data structure representing the set to quantify a comparison operator over.j beam-core Convert a known not null bool to a C. See q for the inversek beam-coreSQL IS TRUE operatorl beam-coreSQL  IS NOT TRUE operatorm beam-coreSQL IS FALSE operatorn beam-coreSQL  IS NOT FALSE operatoro beam-coreSQL  IS UNKNOWN operatorp beam-coreSQL IS NOT UNKNOWN operatorq beam-coreKReturn the first argument if the expression has the unknown SQL value See j for the inverser beam-core Retrieve a C value as a potentially NULL ~. This is useful if you want to get the value of a SQL boolean expression directly, without having to specify what to do on UNKNOWN. Note that both NULL and UNKNOWN will be returned as .s beam-coreConvert a possibly NULL  to a C.t beam-coreA i representing a SQL ALL(..) for use with a #quantified-comparison-operatorquantified comparison operatorAccepts a subquery. Use u for an explicit listu beam-coreA i representing a SQL ALL(..) for use with a #quantified-comparison-operatorquantified comparison operator3Accepts an explicit list of typed expressions. Use t for a subqueryv beam-coreA i representing a SQL ANY(..) for use with a #quantified-comparison-operatorquantified comparison operatorAccepts a subquery. Use w for an explicit listw beam-coreA i representing a SQL ANY(..) for use with a #quantified-comparison-operatorquantified comparison operator3Accepts an explicit list of typed expressions. Use v for a subqueryx beam-coreSQL BETWEEN clausey beam-coreSQL IN predicate beam-coreCompare two arbitrary   types containing s for equality. beam-coreACompare two arbitrary expressions (of the same type) for equality beam-coreDTwo arbitrary expressions can be quantifiably compared for equality..OPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyP4Q4R4S4U4V4W4X4b4c4e4f4x4y4None&',./12478=>?@ACHMNPSUVXk z beam-core2Type-class for types that contain a date component{ beam-core2Type-class for types that contain a time component| beam-core;A field that can be extracted from SQL expressions of type tgt that results in a type a , in backend be.~ beam-core3Extracts the given field from the target expression beam-coreIExtracts the hours, minutes, or seconds from any timestamp or time field beam-coreIExtracts the hours, minutes, or seconds from any timestamp or time field beam-coreIExtracts the hours, minutes, or seconds from any timestamp or time field z{|}~None&',./12478=>?@ACHMNPSUVXk beam-coreA data type in a given 9 which describes a SQL type mapping to the Haskell type a beam-core6Cast a value to a specific data type, specified using .MNote: this may fail at run-time if the cast is invalid for a particular value beam-coreSQL92 INTEGER data type beam-coreSQL92 SMALLINT data type beam-coreSQL2008 Optional BIGINT data type beam-coreSQL2003 Optional BINARY data type beam-coreSQL2003 Optional  VARBINARY data type beam-coreSQL92 DATE data type beam-coreSQL92 CHAR data type beam-coreSQL92 VARCHAR data type beam-coreSQL92 NATIONAL CHARACTER VARYING data type beam-coreSQL92 NATIONAL CHARACTER data type beam-coreSQL92 DOUBLE data type beam-coreSQL92 NUMERIC data type beam-coreSQL92 TIMESTAMP WITH TIME ZONE data type beam-coreSQL92 TIMESTAMP WITHOUT TIME ZONE data type beam-coreSQL92 TIME data type beam-coreSQL99 BOOLEAN data type beam-coreSQL99 CLOB data type beam-coreSQL99 BLOB data type beam-coreSQL99 array data types beam-coreHaskell requires 4s to match exactly. Use this function to convert a 2 that expects a concrete value to one expecting a None &',./12478=>?@ACHMNPSUVXk(V beam-coreGA type-class for expression syntaxes that can embed custom expressions. beam-core5Given an arbitrary string-like expression, produce a syntax that represents the  as a SQL expression. beam-coreGiven an arbitrary syntaxm, produce a string-like value that corresponds to how that syntax would look when rendered in the backend. beam-coreForce a & to be typed as a value expression (a U). Useful for getting around type-inference errors with supplying the entire type. beam-coreForce a R to be typed as an aggregate. Useful for defining custom aggregates for use in  aggregate_.None!&',./12478=>?@ACHMNPSUVXk)  None &',./12478=>?@ACHMNPSUVXks9 beam-corehType class for anything which can be checked for null-ness. This includes 'QExpr (Maybe a)' as well as #s or $s over 'Nullable QExpr'. beam-core Returns a ; that evaluates to true when the first argument is not null beam-core Returns a 7 that evaluates to true when the first argument is null beam-coreGiven an object (third argument) which may or may not be null, return the default value if null (first argument), or transform the value that could be null to yield the result of the expression (second argument) beam-coreType class for things that can be nullable. This includes 'QExpr (Maybe a)', 'tbl (Nullable QExpr)', and 'PrimaryKey tbl (Nullable QExpr)' beam-coreGiven something of type 'QExpr a', 'tbl QExpr', or 'PrimaryKey tbl QExpr', turn it into a 'QExpr (Maybe a)', 'tbl (Nullable QExpr)', or 'PrimaryKey t (Nullable QExpr)' respectively that contains the same values. beam-core/Return either a 'QExpr (Maybe x)' representing  or a nullable # or $ filled with . beam-core Update a  or   type containing s with the given  or   type containing  beam-core*Introduce all entries of a table into the  monad beam-core)Introduce all entries of a view into the  monad beam-core*Introduce all entries of a table into the R monad based on the given QExpr. The join condition is expected to return a . For a version that takes C (a possibly UNKNOWNA boolean, that maps more closely to the SQL standard), see . beam-coreLike , but accepting an ON condition that returns C beam-coreIntroduce a table using a left join with no ON clause. Because this is not an inner join, the resulting table is made nullable. This means that each field that would normally have type 'QExpr x' will now have type 'QExpr (Maybe x)'. beam-core/Outer join. every row of each table, returning NULLQ for any row of either table for which the join condition finds no related rows.)This expects a join expression returning  , for a version that accepts a C (a possibly UNKNOWN< boolean, that maps more closely to the SQL standard), see  beam-coreLike , but accepting C~. Pairs of rows for which the join condition is unknown are considered to be unrelated, by SQL compliant databases at least. beam-coreIntroduce a table using a left join. The ON clause is required here.Because this is not an inner join, the resulting table is made nullable. This means that each field that would normally have type 'QExpr x' will now have type 'QExpr (Maybe x)'.The ON condition given must return #. For a version that accepts an ON condition returning C, see . beam-coreLike , but accepts an ON clause returning C. beam-core!Only allow results for which the  yields -. For a version that operates over possibly NULL Cs, see . beam-core!Only allow results for which the  yields TRUE.This function operates over C, which are like haskell s, except for the special UNKNOWN- value that occurs when comparisons include NULL.. For a version that operates over known non-NULL booleans, see . beam-core Synonym for *clause >>= x -> guard_ (mkExpr x)>> pure x. Use  for comparisons with C beam-core Synonym for +clause >>= x -> guard_' (mkExpr x)>> pure x. Use  for comparisons with  beam-coreKIntroduce all entries of the given table which are referenced by the given $ beam-core|Introduce all entries of the given table which for which the expression (which can depend on the queried table returns true) beam-core|Introduce all entries of the given table which for which the expression (which can depend on the queried table returns true) beam-core Generate an appropriate boolean \ comparing the given foreign key to the given table. Useful for creating join conditions. beam-core(Only return distinct values from a query beam-core0Limit the number of results returned by a query. beam-coreDrop the first offset' results. beam-core Use the SQL EXISTS= operator to determine if the given query returns any results beam-core Use the SQL UNIQUEB operator to determine if the given query produces a unique result beam-coreUse the SQL99 DISTINCTD operator to determine if the given query produces a distinct result beam-coreLProject the (presumably) singular result of the given query as an expression beam-coreSQL  CHAR_LENGTH function beam-coreSQL  OCTET_LENGTH function beam-coreSQL  BIT_LENGTH function beam-coreSQL CURRENT_TIMESTAMP function beam-coreSQL POSITION(.. IN ..) function beam-coreSQL LOWER function beam-coreSQL UPPER function beam-coreSQL TRIM function beam-core$Combine all the given boolean value  s with the D operator. beam-coreHExtract an expression representing the current (non-UPDATEd) value of a  beam-coreSQL UNION operator beam-coreSQL  UNION ALL operator beam-coreSQL  INTERSECT operator beam-coreSQL  INTERSECT ALL operator beam-coreSQL EXCEPT operator beam-coreSQL  EXCEPT ALL operator beam-core\Convenience function that allows you to use type applications to specify the result of a .$Useful to disambiguate the types of Ms without having to provide a complete type signature. As an example, the  countAll_) aggregate can return a result of any J type. Without further constraints, the type is ambiguous. You can use ! to disambiguate the return type.For example, this is ambiguous aggregate_ (\_ -> countAll_) ..But this is not (aggregate_ (\_ -> as_ @Int countAll_) .. beam-core+Specify a window frame with all the options beam-coreEProduce a window expression given an aggregate function and a window. beam-coreCompute a query over windows.2The first function builds window frames using the , , etc functions. The return type can be a single frame, tuples of frame, or any arbitrarily nested tuple of the above. Instances up to 8-tuples are provided.The second function builds the resulting projection using the result of the subquery as well as the window frames built in the first function. In this function, window expressions can be included in the output using the  function. beam-corefOrder by the given expressions. The return type of the ordering key should either be the result of   or   (or another ordering h generated by a backend-specific ordering) or an (possibly nested) tuple of results of the former.The  =https://tathougies.github.io/beam/user-guide/queries/orderingmanual section has more information.  beam-core Produce a  corresponding to a SQL ASC ordering  beam-core Produce a  corresponding to a SQL DESC ordering beam-coreSQL COALESCE support beam-core Converta a 1 value to a concrete value, by suppling a default beam-core PARTITION BY  beam-core ORDER BY  beam-core RANGE / ROWS  beam-coreWindow builder function beam-coreFProjection builder function. Has access to the windows generated above beam-coreQuery to window overR     43None&',./12478=>?@ACHMNPSUVXkư  beam-coremConvenience type to declare many-to-many relationships with additional data. See the manual section on  Bhttp://tathougies.github.io/beam/user-guide/queries/relationships/ relationships for more information beam-coreXConvenience type to declare many-to-many relationships. See the manual section on  Bhttp://tathougies.github.io/beam/user-guide/queries/relationships/ relationships for more information beam-coresConvenience type to declare one-to-many relationships with a nullable foreign key. See the manual section on  Bhttp://tathougies.github.io/beam/user-guide/queries/relationships/ relationships for more information beam-core Synonym of ^. Useful for giving more meaningful types, when the relationship is meant to be one-to-one. beam-coreWConvenience type to declare one-to-many relationships. See the manual section on  Bhttp://tathougies.github.io/beam/user-guide/queries/relationships/ relationships for more information beam-core Synonym of ^. Useful for giving more meaningful types, when the relationship is meant to be one-to-one. beam-coreUsed to define one-to-many (or one-to-one) relationships. Takes the table to fetch, a way to extract the foreign key from that table, and the table to relate to. beam-coreUsed to define one-to-many (or one-to-one) relationships. Takes the table to fetch, a way to extract the foreign key from that table, and the table to relate to. beam-coreUsed to define one-to-many (or one-to-one) relationships with a nullable foreign key. Takes the table to fetch, a way to extract the foreign key from that table, and the table to relate to. beam-coreUsed to define one-to-many (or one-to-one) relationships with a nullable foreign key. Takes the table to fetch, a way to extract the foreign key from that table, and the table to relate to. beam-coreUsed to define many-to-many relationships without any additional data. Takes the join table and two key extraction functions from that table to the related tables. Also takes two +s representing the table sources to relate.See  Bhttp://tathougies.github.io/beam/user-guide/queries/relationships/ the manual for more indformation. beam-coreUsed to define many-to-many relationships with additional data. Takes the join table and two key extraction functions from that table to the related tables. Also takes two +s representing the table sources to relate.See  Bhttp://tathougies.github.io/beam/user-guide/queries/relationships/ the manual for more indformation. beam-coreTable to fetch (many)  beam-core Foreign key  beam-coreTable to fetch (many)  beam-core Foreign key  beam-coreTable to fetch  beam-core Foreign key  beam-coreTable to fetch  beam-core Foreign key  None&',./12478=>?@ACHMNPSUVXk%  beam-coreType class for grouping keys. expr6 is the type of the grouping key after projection. groupeda is the type of the grouping key in the aggregate expression (usually something that contains  s in the )." beam-core"Compute an aggregate over a query.The supplied aggregate projection should return an aggregate expression (an expression containing an aggregate function such as +, ), *+, etc), a grouping key (specified with the !7 function), or a combination of tuples of the above.2Appropriate instances are provided up to 8-tuples.SSemantically, all grouping expressions in the projection will be added to a SQL GROUP BY7 clause and all aggregate expressions will be computed.The return value will be the type of the aggregate projection, but transformed to be in the normal value context (i.e., everything will become s).For usage examples, see  @https://tathougies.github.io/beam/user-guide/queries/aggregates/ the manual.# beam-coreTCompute an aggregate over all values in a group. Corresponds semantically to the  AGG(ALL ..)) syntax, but doesn't produce an explicit ALL. To produce ALL expicitly, see %.$ beam-coreQCompute an aggregate only over distinct values in a group. Corresponds to the AGG(DISTINCT ..) syntax.% beam-coreGCompute an aggregate over all values in a group. Corresponds to the  AGG(ALL ..) syntax. Note that ALLS is the default for most aggregations, so you don't normally explicitly specify ALL. However, if you need to, you can use this function. To be explicit about quantification in the beam query DSL, but not produce an explicit ALL, use #. #D has the same semantic meaning, but does not produce an explicit ALL.& beam-coreSQL  MIN(ALL ..)( function (but without the explicit ALL)' beam-coreSQL  MAX(ALL ..)( function (but without the explicit ALL)( beam-coreSQL  AVG(ALL ..)( function (but without the explicit ALL)) beam-coreSQL  SUM(ALL ..)( function (but without the explicit ALL)* beam-coreSQL COUNT(*) function+ beam-coreSQL  COUNT(ALL ..)( function (but without the explicit ALL), beam-coreSQL2003  CUME_DIST: function (Requires T612 Advanced OLAP operations support)- beam-coreSQL2003  PERCENT_RANK: function (Requires T612 Advanced OLAP operations support). beam-coreSQL2003  DENSE_RANK: function (Requires T612 Advanced OLAP operations support)/ beam-coreSQL2003  ROW_NUMBER function0 beam-coreSQL2003 RANK< function (Requires T611 Elementary OLAP operations support)6 beam-coreSQL EVERY, SOME, and ANY aggregates. Operates over C only, as the result can be NULL0, even if all inputs are known (no input rows).7 beam-coreSQL EVERY, SOME, and ANY aggregates. Operates over C only, as the result can be NULL0, even if all inputs are known (no input rows).8 beam-coreSQL EVERY, SOME, and ANY aggregates. Operates over C only, as the result can be NULL0, even if all inputs are known (no input rows).9 beam-coresSupport for FILTER (WHERE ...) syntax for aggregates. Part of SQL2003 Elementary OLAP operations feature (T611).See : for a version that accepts C.: beam-coreLike 9 but accepting C.; beam-coreSQL99  EVERY(ALL ..)( function (but without the explicit ALL)< beam-coreSQL99  SOME(ALL ..)( function (but without the explicit ALL)= beam-coreSQL99  ANY(ALL ..)( function (but without the explicit ALL) beam-core! for any   type. Adds every field in the type to the grouping key. This is the equivalent of including the grouping expression of each field in the type as part of the aggregate projection beam-core! for any   type. Adds every field in the type to the grouping key. This is the equivalent of including the grouping expression of each field in the type as part of the aggregate projection beam-core! for simple value expressions." beam-coreAggregate projection beam-coreQuery to aggregate over !"#$%&'()*+,-./0123456789:;<=!None&',./12478=>?@ACHMNPSUVXk0>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmM8None&',./12478=>?@ACHMNPSUVXkDn beam-coreRepresents a SQL DELETE statement for the given tablep beam-coreRepresents a SQL UPDATE statement for the given table.s beam-coreORepresents a source of values that can be inserted into a table shaped like tbl.v beam-coreRepresents a SQL INSERT" command that has not yet been runy beam-coreLRepresents a select statement in the given backend, returning rows of type a.| beam-core-A version of the table where each field is a ~ beam-coreBuild a y for the given . beam-core Create a yP for a query which may have common table expressions. See the documentation of  for more details. beam-core#Convenience function to generate a y2 that looks up a table row given a primary key. beam-coreRun a y in a  and get the results as a list beam-coreRun a y in a x and get the unique result, if there is one. Both no results as well as more than one result cause this to return . beam-core9Use a special debug syntax to print out an ANSI Standard SELECT0 statement that may be generated for a given . beam-core Generate a v$ over only certain fields of a table beam-core Generate a v& given a table and a source of values. beam-coreRun a v in a  beam-coreBuild a s% from series of expressions in tables beam-coreBuild a s from concrete table values beam-coreBuild a s4 from arbitrarily shaped data containing expressions beam-coreBuild a s from a y that returns the same table beam-coreBuild a p? given a table, a list of assignments, and a way to build a WHERE clause.See the '(<-.)' operator for ways to build assignments. The argument to the second argument is a the table parameterized over , which represents the left hand side of assignments. Sometimes, you'd like to also get the current value of a particular column. You can use the  function to convert a  to a . beam-coreA specialization of . that matches the given (already existing) row beam-coreA specialization of + that is more convenient for normal tables. beam-coreConvenience form of  that generates a WHERE6 clause that matches only the already existing entity beam-core Use with Q to set a field to an explicit new value that does not depend on any other value beam-core Use with  to not modify the field beam-core Use with d to set a field to a new value that is calculated based on one or more fields from the existing row beam-core Use with i to optionally set a fiield to a new value, calculated based on one or more fields from the existing row beam-core Generate a p; that will update the given table row with the given value.The SQL UPDATE} that is generated will set every non-primary key field for the row where each primary key field is exactly what is given.Note: This is a pure SQL UPDATE/ command. This does not upsert or merge values. beam-coreRun a p in a . beam-coreBuild a n# from a table and a way to build a WHERE clause beam-coreRun a n in a  beam-coreTable to insert into beam-coreValues to insert. See , , , and  for possibilities. beam-coreTable to insert into beam-coreValues to insert. See , , and  for possibilities. beam-coreThe table to insert into beam-core"A sequence of assignments to make. beam-coreBuild a WHERE, clause given a table containing expressions beam-coreThe table to insert into beam-coreThe row to update beam-core"A sequence of assignments to make. beam-coreThe table to update beam-coreUpdates to be made (use  to construct an empty field) beam-coreThe table to update beam-coreThe row to update beam-coreUpdates to be made (use  to construct an empty field) beam-coreTable to update beam-coreValue to set to beam-coreTable to delete from beam-coreBuild a WHERE, clause given a table containing expressionsN>?@ACDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~/>?@A|{}     >?@ABCDEFGMHIJKLNOPQRSTUVWXYZ[\^]_`abcdefghjiklm|}~{zDEFGHIJKLMNCklmnopqjrs\]^_`YZ[defghTUVWXabcOPQRSivtwuxy"9: !)(&'+*0,-./;=<43125687$#%yz~vwxstupqrnoNone&',./12478=>?@ACHMNPSUVXkW  beam-coreAs that suppert returning rows that will be deleted by the given DELETER statement. Useful for deallocating resources based on the value of deleted rows. beam-core0s that support returning the updated rows of an UPDATEI statement. Useful for discovering the new values of the updated rows. beam-core6s that support returning the newly created rows of an INSERTJ statement. Useful for discovering the real value of a defaulted value.    None&',./12478=>?@ACHMNPSUVXkXx"&'( #$%)*+13456789DLNPQSTUVWXYZ[\^hi>?@ACDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ &'("#$"%&"%'"()"(*"+,"%'--.//00123456789:;<=>?@ABCDEFGHIJKLLMNOPQQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                                                                                             ! " # $ % & ' ( ) * * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                                                                                                                                                                          ! "#$%&'()**+,-./012345567889:;;<<=>??@ABBCDEFGHIJKLMNOPQQRSSTTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~rs                      ! " # $ % & ' ( ) * + , - .!/!0!1!2!3!4!5!6!7!8!9!:!;!<!=!>!?!@!A!B!C!D!E!F!G!H!I!J!K!L!M!N!O!P!Q!R!S!T!U!V!W!X!Y!Z![!\!]!^__``abbcddeffghijklmnopqrstuvwxyz{|}~"""""b"   (beam-core-0.8.0.0-3WPeDSKSDf520AEvz1Go38 Database.BeamDatabase.Beam.Schema.TablesDatabase.Beam.Backend.SQL.TypesDatabase.Beam.Backend.TypesDatabase.Beam.Backend.SQL.RowDatabase.Beam.Backend.SQL.SQL92Database.Beam.Backend.SQL.SQL99!Database.Beam.Backend.SQL.SQL2003Database.Beam.Backend.SQL.ASTDatabase.Beam.Backend.SQL!Database.Beam.Backend.SQL.BuilderDatabase.Beam.Backend.URIDatabase.Beam.SchemaDatabase.Beam.Query.InternalDatabase.Beam.Query.SQL92Database.Beam.Query.TypesDatabase.Beam.QueryDatabase.Beam.Query.DataTypesDatabase.Beam.Query.CustomSQLDatabase.Beam.Query.CTE(Database.Beam.Backend.SQL.BeamExtensionsQueryDatabase.Beam.Backend Data.FunctorComposeDatabase.Beam.Schema.LensesDatabase.Beam.Query.OperatorDatabase.Beam.Query.OrdDatabase.Beam.Query.ExtractDatabase.Beam.Query.Combinators!Database.Beam.Query.RelationshipsDatabase.Beam.Query.AggregateDatabase.Beam.Query.ExtensionsbaseData.Typeable.InternalTypeable GHC.GenericsGeneric:*:Control.Monad.IO.ClassliftIOMonadIOData.Functor.IdentityIdentity SqlSerialunSerial SqlBitStringSqlNull$fToJSONSqlSerial$fFromJSONSqlSerial $fShowSqlNull $fEqSqlNull $fOrdSqlNull$fBoundedSqlNull $fEnumSqlNull$fShowSqlBitString$fEqSqlBitString$fOrdSqlBitString$fEnumSqlBitString$fBitsSqlBitString$fShowSqlSerial$fReadSqlSerial $fEqSqlSerial$fOrdSqlSerial$fNumSqlSerial$fIntegralSqlSerial$fRealSqlSerial$fEnumSqlSerialNullableExposed BeamBackendBackendFromFieldFromBackendRowfromBackendRow valuesNeededFromBackendRowMFromBackendRowF ParseOneFieldAlt FailParseWithBeamRowReadError brreColumn brreErrorColumnParseErrorColumnUnexpectedNullColumnNotEnoughColumnsColumnTypeMismatchColumnErrorInternalctmHaskellType ctmSQLType ctmMessage parseOneField peekField$fExceptionBeamRowReadError$fAlternativeFromBackendRowM$fMonadFromBackendRowM$fFromBackendRowbeSqlSerial$fFromBackendRowbeTagged$fFromBackendRowbeMaybe$fFromBackendRowbeVector$fFromBackendRowbetbl$fFromBackendRowbetbl0$fFromBackendRowbe(,,,,,,,)$fFromBackendRowbe(,,,,,,)$fFromBackendRowbe(,,,,,)$fFromBackendRowbe(,,,,)$fFromBackendRowbe(,,,)$fFromBackendRowbe(,,)$fFromBackendRowbe(,)$fFromBackendRowbe()$fGFromBackendRowbeK1K1$fGFromBackendRowbeK1K10$fGFromBackendRowbeK1K11$fGFromBackendRowbe:*::*:$fGFromBackendRowbeeU1$fGFromBackendRowbeM1M1$fShowColumnParseError$fEqColumnParseError$fOrdColumnParseError$fShowBeamRowReadError$fEqBeamRowReadError$fOrdBeamRowReadError$fFunctorFromBackendRowM$fApplicativeFromBackendRowM$fGeneric(,,,,,,,)$fFunctorFromBackendRowFIsSql92FromOuterJoinSyntax outerJoinIsSql92FromSyntaxSql92FromTableSourceSyntaxSql92FromExpressionSyntax fromTable innerJoinleftJoin rightJoinIsSql92GroupingSyntaxSql92GroupingExpressionSyntaxgroupByExpressionsIsSql92TableSourceSyntaxSql92TableSourceSelectSyntax Sql92TableSourceExpressionSyntaxSql92TableSourceTableNameSyntax tableNamedtableFromSubSelecttableFromValuesIsSql92TableNameSyntax tableNameIsSql92OrderingSyntaxSql92OrderingExpressionSyntax ascOrdering descOrderingIsSql92ProjectionSyntaxSql92ProjectionExpressionSyntax projExprs%IsSql92AggregationSetQuantifierSyntaxsetQuantifierDistinctsetQuantifierAll"IsSql92AggregationExpressionSyntax#Sql92AggregationSetQuantifierSyntax countAllEcountEavgEmaxEminEsumEIsSql92ExpressionSyntaxSql92ExpressionQuantifierSyntaxSql92ExpressionValueSyntaxSql92ExpressionSelectSyntaxSql92ExpressionFieldNameSyntaxSql92ExpressionCastTargetSyntax!Sql92ExpressionExtractFieldSyntaxvalueErowEquantifierListE coalesceEcaseEfieldEbetweenEandEorEaddEsubEmulEdivElikeEmodE overlapsEnullIfE positionEeqEneqEltEgtEleEgeEeqMaybeE neqMaybeEcastEnotEnegateEisNullE isNotNullEisTrueE isNotTrueEisFalseE isNotFalseE isUnknownE isNotUnknownE charLengthE octetLengthE bitLengthElowerEupperEtrimEabsEextractEexistsEuniqueE subqueryEcurrentTimestampEdefaultEinEIsSql92DataTypeSyntax domainTypecharType varCharTypenationalCharTypenationalVarCharTypebitType varBitType numericType decimalTypeintType smallIntType floatType doubleTyperealTypedateTypetimeType timestampTypeIsSql92ExtractFieldSyntax secondsField minutesField hourFielddayField monthField yearFieldIsSql92QuantifierSyntaxquantifyOverAllquantifyOverAnyIsSql92FieldNameSyntaxqualifiedFieldunqualifiedFieldIsSql92DeleteSyntaxSql92DeleteTableNameSyntaxSql92DeleteExpressionSyntax deleteStmtdeleteSupportsAliasIsSql92UpdateSyntaxSql92UpdateTableNameSyntaxSql92UpdateFieldNameSyntaxSql92UpdateExpressionSyntax updateStmtIsSql92InsertValuesSyntax!Sql92InsertValuesExpressionSyntaxSql92InsertValuesSelectSyntaxinsertSqlExpressions insertFromSqlIsSql92InsertSyntaxSql92InsertValuesSyntaxSql92InsertTableNameSyntax insertStmtIsSql92SelectTableSyntaxSql92SelectTableSelectSyntax Sql92SelectTableExpressionSyntax Sql92SelectTableProjectionSyntaxSql92SelectTableFromSyntaxSql92SelectTableGroupingSyntax#Sql92SelectTableSetQuantifierSyntaxselectTableStmt unionTablesintersectTables exceptTableIsSql92SelectSyntaxSql92SelectSelectTableSyntaxSql92SelectOrderingSyntax selectStmt IsSql92SyntaxSql92SelectSyntaxSql92InsertSyntaxSql92UpdateSyntaxSql92DeleteSyntax selectCmd insertCmd updateCmd deleteCmdSql92DisplaySyntax displaySyntaxSql92ReasonableMarshallerSql92SanityCheckSql92SelectSanityCheckSql92HasValueSyntaxSql92ExtractFieldSyntaxSql92ExpressionSyntaxSql92ValueSyntaxSql92TableNameSyntaxSql92InsertExpressionSyntaxSql92SelectFromSyntaxSql92SelectGroupingSyntaxSql92SelectProjectionSyntaxSql92SelectExpressionSyntaxHasSqlValueSyntaxsqlValueSyntaxautoSqlValueSyntax$fHasSqlValueSyntaxvsTagged"$fHasSqlValueSyntaxsyntaxSqlSerial"IsSql99CommonTableExpressionSyntaxSql99CTESelectSyntaxcteSubquerySyntax1IsSql99RecursiveCommonTableExpressionSelectSyntaxwithRecursiveSyntax(IsSql99CommonTableExpressionSelectSyntaxSql99SelectCTESyntax withSyntaxIsSql99DataTypeSyntaxcharacterLargeObjectTypebinaryLargeObjectType booleanType arrayTyperowType"IsSql99AggregationExpressionSyntaxeveryEsomeEanyEIsSql99ConcatExpressionSyntaxconcatEIsSql99ExpressionSyntax distinctE similarToEinstanceFieldE refFieldEIsSql99FunctionExpressionSyntax functionCallE functionNameEIsSql99SelectSyntaxIsSql2008BigIntDataTypeSyntax bigIntType!IsSql2003NthValueExpressionSyntax nthValueE/IsSql2003FirstValueAndLastValueExpressionSyntax firstValueE lastValueE#IsSql2003LeadAndLagExpressionSyntaxleadElagEIsSql2003NtileExpressionSyntaxntileEQWindow6$fProjectibleWithPredicatecontextPredicatebe->QGenExpr/$fProjectibleWithPredicatecontextPredicatebe->t0$fProjectibleWithPredicatecontextPredicatebe->t0 $fShowQField $fEqQField $fOrdQField$fMonoidQAssignment$fSemigroupQAssignment$fMonadQ$fApplicativeQ $fFunctorQ $fFunctorQFbuildSql92Query'0$fProjectibleWithPredicatecsyntaxresPreserveLeft HasQBuilder buildSqlQuery QExprToFieldQExprToIdentity$fHasQBuilderMockSqlBackendSqlBool&&.||.&&?.||?.like_ similarTo_not_sqlNot_div_mod_concat_SqlOrdQuantified<*.>*.<=*.>=*.SqlOrd<.>.<=.>=.HasSqlQuantifiedEqualityChecksqlQEqEsqlQNeqEHasSqlEqualityChecksqlEqEsqlNeqE sqlEqTriE sqlNeqTriESqlEqQuantified==*./=*.SqlEq==./=.==?./=?. QQuantifiedsqlBool_isTrue_ isNotTrue_isFalse_ isNotFalse_ isUnknown_ isNotUnknown_ unknownAs_possiblyNullBool_fromPossiblyNullBool_allOf_allIn_anyOf_anyIn_between_in_ HasSqlDate HasSqlTimeextract_hour_minutes_seconds_year_month_day_cast_intsmallintbigintbinary varbinarydatecharvarcharnationalVarchar nationalChardoublenumeric timestamptz timestamptimebooleancharacterLargeObjectbinaryLargeObjectarray maybeTypeIsCustomExprFn customExpr_IsCustomSqlSyntaxCustomSqlSyntaxcustomExprSyntax renderSyntax valueExpr_agg_#$fIsCustomSqlSyntaxSqlSyntaxBuilder$fIsStringCustomSqlSnippet$fMonoidCustomSqlSnippet$fSemigroupCustomSqlSnippet$fIsCustomExprFn->->($fIsCustomExprFnCustomSqlSnippetQGenExpr$fIsStringCustomSqlSyntax$fMonoidCustomSqlSyntax$fSemigroupCustomSqlSyntax ReusableQ QAnyScopeWithrunWith Recursiveness Nonrecursive RecursivereusableForCTE selectingrescopeQreuse$fSemigroupRecursiveness$fMonoidRecursiveness$fMonadFixWith $fMonadWith$fApplicativeWith $fFunctorWithSqlDeconstructMaybeisJust_ isNothing_maybe_QIfElseQIfCond SqlJustablejust_nothing_ SqlOrderable SqlValableval_SqlValableTableHaskellLiteralForQExpr<-.all_ allFromView_values_join_join_'perhaps_ outerJoin_ outerJoin_' leftJoin_ leftJoin_' subselect_guard_guard_'filter_filter_'related_ relatedBy_ relatedBy_' references_nub_limit_offset_exists_unique_ distinct_ subquery_ charLength_ octetLength_ bitLength_currentTimestamp_ position_lower_upper_trim_current_union_ unionAll_ intersect_ intersectAll_except_ exceptAll_as_default_ noBounds_ fromBound_bounds_ unbounded_nrows_ noPartition_noOrder_ partitionBy_orderPartitionBy_frame_over_ withWindow_orderBy_ nullsFirst_ nullsLast_asc_desc_then_then_'else_if_ coalesce_ fromMaybe_<|>.ManyToManyThrough ManyToManyOneToManyOptional OneToMaybe OneToManyOneToOne oneToMany_ oneToOne_oneToManyOptional_ oneToMaybe_ manyToMany_manyToManyPassthrough_ QGroupablegroup_ aggregate_ allInGroup_distinctInGroup_allInGroupExplicitly_min_max_avg_sum_ countAll_count_ cumeDist_ percentRank_ denseRank_ rowNumber_rank_minOver_maxOver_avgOver_sumOver_ countOver_ everyOver_ someOver_anyOver_ filterWhere_ filterWhere_'every_some_any_ntile_lead1_lag1_lead_lag_leadWithDefault_lagWithDefault_ firstValue_ lastValue_ nthValue_ln_exp_sqrt_ceiling_floor_**.stddevPopOver_stddevSampOver_ varPopOver_ varSampOver_ stddevPop_ stddevSamp_varPop_varSamp_ covarPopOver_covarSampOver_ corrOver_regrSlopeOver_regrInterceptOver_regrCountOver_regrRSquaredOver_ regrAvgYOver_ regrAvgXOver_ regrSXXOver_ regrSYYOver_ regrSXYOver_ covarPop_ covarSamp_corr_ regrSlope_regrIntercept_ regrCount_ regrRSquared_ regrAvgY_ regrAvgX_regrSXX_regrSYY_regrSXY_ SqlDelete SqlUpdateSqlIdentityUpdateSqlInsertValuesSqlInsertValuesEmpty SqlInsertSqlInsertNoRows SqlSelect QExprTable QGenExprTable QBaseScopeselect selectWithlookup_runSelectReturningListrunSelectReturningOne dumpSqlSelect insertOnlyinsert runInsertinsertExpressions insertData insertFromupdate updateRowupdateTableRowset setFieldsTo toNewValue toOldValuetoUpdatedValuetoUpdatedValueMaybesave runUpdatedelete runDeleteMonadBeamDeleteReturningrunDeleteReturningListMonadBeamUpdateReturningrunUpdateReturningListMonadBeamInsertReturningrunInsertReturningList $fMonadBeamInsertReturningbeRWST!$fMonadBeamInsertReturningbeRWST0#$fMonadBeamInsertReturningbeWriterT$$fMonadBeamInsertReturningbeWriterT0"$fMonadBeamInsertReturningbeStateT#$fMonadBeamInsertReturningbeStateT0#$fMonadBeamInsertReturningbeReaderT!$fMonadBeamInsertReturningbeContT#$fMonadBeamInsertReturningbeExceptT $fMonadBeamUpdateReturningbeRWST!$fMonadBeamUpdateReturningbeRWST0#$fMonadBeamUpdateReturningbeWriterT$$fMonadBeamUpdateReturningbeWriterT0"$fMonadBeamUpdateReturningbeStateT#$fMonadBeamUpdateReturningbeStateT0#$fMonadBeamUpdateReturningbeReaderT!$fMonadBeamUpdateReturningbeContT#$fMonadBeamUpdateReturningbeExceptT $fMonadBeamDeleteReturningbeRWST!$fMonadBeamDeleteReturningbeRWST0#$fMonadBeamDeleteReturningbeWriterT$$fMonadBeamDeleteReturningbeWriterT0"$fMonadBeamDeleteReturningbeStateT#$fMonadBeamDeleteReturningbeStateT0#$fMonadBeamDeleteReturningbeReaderT!$fMonadBeamDeleteReturningbeContT#$fMonadBeamDeleteReturningbeExceptTGHC.BaseString GHC.MaybeNothingbytestring-0.10.8.2 Data.ByteString.Builder.InternalBuilderSubTableStrategy GHC.TypeLits ErrorMessageMaybe Data.StringIsStringunCamelCaseSel DatabaseTable DatabaseViewDatabaseDomainTypedbTableSettings dbTableSchemadbTableOrigNamedbTableCurrentNamedbViewSettings dbViewSchemadbViewOrigNamedbViewCurrentName sbSelectFn SelectStmtFnghc-prim GHC.TypesBoolHasTableEquality$fSqlEqQGenExprtbl0$fSqlEqQGenExprQGenExpr,$fSqlEqQuantifiedQGenExprQQuantifiedQGenExprHasTableEqualityNullableData.ByteString.Internal ByteStringTrueallEGHC.RealIntegral$fQGroupabletbltbl$fQGroupabletbltbl0$fQGroupableQGenExprQGenExpr