queryparser-0.1.0.1: Analysis and parsing library for SQL queries.

Safe HaskellNone
LanguageHaskell2010

Database.Sql.Type.Scope

Synopsis

Documentation

type ColumnSet a = [(Maybe (RTableRef a), [RColumnRef a])] Source #

A ColumnSet records the table-bindings (if any) of columns.

Can be used to represent columns that are in ambient scope, which can be referenced, based on arcane and dialect specific rules. The fst component will be Nothing for collections of column aliases bound in a containing select statement (which thus have no corresponding Tablish), or for subqueries/lateral views with no table alias.

Can also be used to represent "what stars expand into".

data Bindings a Source #

Constructors

Bindings 

data SelectScope a Source #

Constructors

SelectScope 

Fields

data RawNames Source #

Instances

Data RawNames Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RawNames -> c RawNames #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RawNames #

toConstr :: RawNames -> Constr #

dataTypeOf :: RawNames -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RawNames) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RawNames) #

gmapT :: (forall b. Data b => b -> b) -> RawNames -> RawNames #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RawNames -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RawNames -> r #

gmapQ :: (forall d. Data d => d -> u) -> RawNames -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RawNames -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RawNames -> m RawNames #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RawNames -> m RawNames #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RawNames -> m RawNames #

Resolution RawNames Source # 
type TableRef RawNames Source # 
type TableName RawNames Source # 
type CreateTableName RawNames Source # 
type DropTableName RawNames Source # 
type SchemaName RawNames Source # 
type CreateSchemaName RawNames Source # 
type ColumnRef RawNames Source # 
type NaturalColumns RawNames Source # 
type UsingColumn RawNames Source # 
type StarReferents RawNames Source # 
type PositionExpr RawNames Source # 
type ComposedQueryColumns RawNames Source # 

data ResolvedNames Source #

Instances

Data ResolvedNames Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ResolvedNames -> c ResolvedNames #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ResolvedNames #

toConstr :: ResolvedNames -> Constr #

dataTypeOf :: ResolvedNames -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ResolvedNames) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ResolvedNames) #

gmapT :: (forall b. Data b => b -> b) -> ResolvedNames -> ResolvedNames #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ResolvedNames -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ResolvedNames -> r #

gmapQ :: (forall d. Data d => d -> u) -> ResolvedNames -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ResolvedNames -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ResolvedNames -> m ResolvedNames #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ResolvedNames -> m ResolvedNames #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ResolvedNames -> m ResolvedNames #

Resolution ResolvedNames Source # 
Evaluation e => Evaluate e (Expr ResolvedNames Range) Source # 
Evaluation e => Evaluate e (Selection ResolvedNames Range) Source # 
Evaluation e => Evaluate e (SelectTimeseries ResolvedNames Range) Source # 
Evaluation e => Evaluate e (SelectHaving ResolvedNames Range) Source # 
Evaluation e => Evaluate e (SelectGroup ResolvedNames Range) Source # 
Evaluation e => Evaluate e (SelectWhere ResolvedNames Range) Source # 
Evaluation e => Evaluate e (SelectColumns ResolvedNames Range) Source #

SelectColumns tells us how to map from the records provided by the FROM to (unfiltered, &c) records provided by our select. Evaluating it gives us that function.

Evaluation e => Evaluate e (JoinCondition ResolvedNames Range) Source # 
Evaluation e => Evaluate e (Tablish ResolvedNames Range) Source # 
Evaluation e => Evaluate e (SelectFrom ResolvedNames Range) Source # 
Evaluation e => Evaluate e (Select ResolvedNames Range) Source # 
Evaluation e => Evaluate e (Query ResolvedNames Range) Source # 
HasTables (NamedWindowExpr ResolvedNames a) Source # 
HasTables (PartialWindowExpr ResolvedNames a) Source # 
HasTables (WindowExpr ResolvedNames a) Source # 
HasTables (OverSubExpr ResolvedNames a) Source # 
HasTables (Partition ResolvedNames a) Source # 
HasTables (Filter ResolvedNames a) Source # 
HasTables (Expr ResolvedNames a) Source # 
HasTables (Selection ResolvedNames a) Source # 
HasTables (Order ResolvedNames a) Source # 
HasTables (SelectNamedWindow ResolvedNames a) Source # 
HasTables (SelectHaving ResolvedNames a) Source # 
HasTables (SelectGroup ResolvedNames a) Source # 
HasTables (GroupingElement ResolvedNames a) Source # 
HasTables (PositionOrExpr ResolvedNames a) Source # 
HasTables (SelectTimeseries ResolvedNames a) Source # 
HasTables (SelectWhere ResolvedNames a) Source # 
HasTables (Tablish ResolvedNames a) Source # 
HasTables (SelectFrom ResolvedNames a) Source # 
HasTables (SelectColumns ResolvedNames a) Source # 
HasTables (Select ResolvedNames a) Source # 
HasTables (Query ResolvedNames a) Source # 
HasTables (DropView ResolvedNames a) Source # 
HasTables (CreateView ResolvedNames a) Source # 
HasTables (DropTable ResolvedNames a) Source # 
HasTables (AlterTable ResolvedNames a) Source # 
HasTables (Truncate ResolvedNames a) Source # 
HasTables (Delete ResolvedNames a) Source # 
HasTables (Update ResolvedNames a) Source # 
HasTables (DefaultExpr ResolvedNames a) Source # 
HasTables (InsertValues ResolvedNames a) Source # 
HasTables (Insert ResolvedNames a) Source # 
HasSchemaChange (AlterTable ResolvedNames a) Source # 
HasColumns (NamedWindowExpr ResolvedNames a) Source # 
HasColumns (PartialWindowExpr ResolvedNames a) Source # 
HasColumns (WindowExpr ResolvedNames a) Source # 

Methods

goColumns :: WindowExpr ResolvedNames a -> Observer Source #

HasColumns (OverSubExpr ResolvedNames a) Source # 

Methods

goColumns :: OverSubExpr ResolvedNames a -> Observer Source #

HasColumns (Partition ResolvedNames a) Source # 

Methods

goColumns :: Partition ResolvedNames a -> Observer Source #

HasColumns (Filter ResolvedNames a) Source # 

Methods

goColumns :: Filter ResolvedNames a -> Observer Source #

HasColumns (Pattern ResolvedNames a) Source # 

Methods

goColumns :: Pattern ResolvedNames a -> Observer Source #

HasColumns (Escape ResolvedNames a) Source # 

Methods

goColumns :: Escape ResolvedNames a -> Observer Source #

HasColumns (Expr ResolvedNames a) Source # 

Methods

goColumns :: Expr ResolvedNames a -> Observer Source #

HasColumns (Selection ResolvedNames a) Source # 

Methods

goColumns :: Selection ResolvedNames a -> Observer Source #

HasColumns (SelectNamedWindow ResolvedNames a) Source # 
HasColumns (SelectHaving ResolvedNames a) Source # 

Methods

goColumns :: SelectHaving ResolvedNames a -> Observer Source #

HasColumns (SelectTimeseries ResolvedNames a) Source # 
HasColumns (SelectWhere ResolvedNames a) Source # 

Methods

goColumns :: SelectWhere ResolvedNames a -> Observer Source #

HasColumns (LateralView ResolvedNames a) Source # 

Methods

goColumns :: LateralView ResolvedNames a -> Observer Source #

HasColumns (JoinCondition ResolvedNames a) Source # 

Methods

goColumns :: JoinCondition ResolvedNames a -> Observer Source #

HasColumns (Tablish ResolvedNames a) Source # 

Methods

goColumns :: Tablish ResolvedNames a -> Observer Source #

HasColumns (SelectFrom ResolvedNames a) Source # 

Methods

goColumns :: SelectFrom ResolvedNames a -> Observer Source #

HasColumns (SelectColumns ResolvedNames a) Source # 

Methods

goColumns :: SelectColumns ResolvedNames a -> Observer Source #

HasColumns (Select ResolvedNames a) Source # 

Methods

goColumns :: Select ResolvedNames a -> Observer Source #

HasColumns (CTE ResolvedNames a) Source # 

Methods

goColumns :: CTE ResolvedNames a -> Observer Source #

HasColumns (Query ResolvedNames a) Source # 

Methods

goColumns :: Query ResolvedNames a -> Observer Source #

HasColumns (CreateView ResolvedNames a) Source # 

Methods

goColumns :: CreateView ResolvedNames a -> Observer Source #

HasColumns (AlterTable ResolvedNames a) Source # 

Methods

goColumns :: AlterTable ResolvedNames a -> Observer Source #

HasColumns (Delete ResolvedNames a) Source # 

Methods

goColumns :: Delete ResolvedNames a -> Observer Source #

HasColumns (Update ResolvedNames a) Source # 

Methods

goColumns :: Update ResolvedNames a -> Observer Source #

HasColumns (DefaultExpr ResolvedNames a) Source # 

Methods

goColumns :: DefaultExpr ResolvedNames a -> Observer Source #

HasColumns (InsertValues ResolvedNames a) Source # 

Methods

goColumns :: InsertValues ResolvedNames a -> Observer Source #

HasColumns (Insert ResolvedNames a) Source # 

Methods

goColumns :: Insert ResolvedNames a -> Observer Source #

HasTables (ColumnDefinition d ResolvedNames a) Source # 
HasTables (ColumnOrConstraint d ResolvedNames a) Source # 
HasTables (TableDefinition d ResolvedNames a) Source # 
HasTables (CreateTable d ResolvedNames a) Source # 
HasTables (Statement d ResolvedNames a) Source # 
HasSchemaChange (Statement d ResolvedNames a) Source # 
HasTableLineage (Statement d ResolvedNames a) Source # 
HasJoins (Statement d ResolvedNames a) Source # 

Methods

getJoins :: Statement d ResolvedNames a -> Set Join Source #

HasColumns (ColumnDefinition d ResolvedNames a) Source # 

Methods

goColumns :: ColumnDefinition d ResolvedNames a -> Observer Source #

HasColumns (ColumnOrConstraint d ResolvedNames a) Source # 
HasColumns (TableDefinition d ResolvedNames a) Source # 

Methods

goColumns :: TableDefinition d ResolvedNames a -> Observer Source #

HasColumns (CreateTable d ResolvedNames a) Source # 

Methods

goColumns :: CreateTable d ResolvedNames a -> Observer Source #

HasColumns (Statement d ResolvedNames a) Source # 

Methods

goColumns :: Statement d ResolvedNames a -> Observer Source #

HasColumnLineage (Statement d ResolvedNames Range) Source # 
type TableRef ResolvedNames Source # 
type TableName ResolvedNames Source # 
type CreateTableName ResolvedNames Source # 
type DropTableName ResolvedNames Source # 
type SchemaName ResolvedNames Source # 
type CreateSchemaName ResolvedNames Source # 
type ColumnRef ResolvedNames Source # 
type NaturalColumns ResolvedNames Source # 
type UsingColumn ResolvedNames Source # 
type StarReferents ResolvedNames Source # 
type PositionExpr ResolvedNames Source # 
type ComposedQueryColumns ResolvedNames Source # 
type EvalResult e (Expr ResolvedNames Range) Source # 
type EvalResult e (Selection ResolvedNames Range) Source # 
type EvalResult e (SelectTimeseries ResolvedNames Range) Source # 
type EvalResult e (SelectHaving ResolvedNames Range) Source # 
type EvalResult e (SelectGroup ResolvedNames Range) Source # 
type EvalResult e (SelectWhere ResolvedNames Range) Source # 
type EvalResult e (SelectColumns ResolvedNames Range) Source # 
type EvalResult e (JoinCondition ResolvedNames Range) Source # 
type EvalResult e (Tablish ResolvedNames Range) Source # 
type EvalResult e (SelectFrom ResolvedNames Range) Source # 
type EvalResult e (Select ResolvedNames Range) Source # 
type EvalResult e (Query ResolvedNames Range) Source # 

newtype StarColumnNames a Source #

Constructors

StarColumnNames [RColumnRef a] 

Instances

Functor StarColumnNames Source # 

Methods

fmap :: (a -> b) -> StarColumnNames a -> StarColumnNames b #

(<$) :: a -> StarColumnNames b -> StarColumnNames a #

Eq a => Eq (StarColumnNames a) Source # 
Data a => Data (StarColumnNames a) Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StarColumnNames a -> c (StarColumnNames a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (StarColumnNames a) #

toConstr :: StarColumnNames a -> Constr #

dataTypeOf :: StarColumnNames a -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (StarColumnNames a)) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (StarColumnNames a)) #

gmapT :: (forall b. Data b => b -> b) -> StarColumnNames a -> StarColumnNames a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StarColumnNames a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StarColumnNames a -> r #

gmapQ :: (forall d. Data d => d -> u) -> StarColumnNames a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StarColumnNames a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StarColumnNames a -> m (StarColumnNames a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StarColumnNames a -> m (StarColumnNames a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StarColumnNames a -> m (StarColumnNames a) #

Ord a => Ord (StarColumnNames a) Source # 
Show a => Show (StarColumnNames a) Source # 
Generic (StarColumnNames a) Source # 

Associated Types

type Rep (StarColumnNames a) :: * -> * #

ToJSON a => ToJSON (StarColumnNames a) Source # 
HasColumns (StarColumnNames a) Source # 

Methods

goColumns :: StarColumnNames a -> Observer Source #

type Rep (StarColumnNames a) Source # 
type Rep (StarColumnNames a) = D1 * (MetaData "StarColumnNames" "Database.Sql.Type.Scope" "queryparser-0.1.0.1-L3r1ujeH5Ss7CLthXKM008" True) (C1 * (MetaCons "StarColumnNames" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [RColumnRef a])))

newtype ColumnAliasList a Source #

Constructors

ColumnAliasList [ColumnAlias a] 

Instances

Functor ColumnAliasList Source # 

Methods

fmap :: (a -> b) -> ColumnAliasList a -> ColumnAliasList b #

(<$) :: a -> ColumnAliasList b -> ColumnAliasList a #

Eq a => Eq (ColumnAliasList a) Source # 
Data a => Data (ColumnAliasList a) Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColumnAliasList a -> c (ColumnAliasList a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (ColumnAliasList a) #

toConstr :: ColumnAliasList a -> Constr #

dataTypeOf :: ColumnAliasList a -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (ColumnAliasList a)) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (ColumnAliasList a)) #

gmapT :: (forall b. Data b => b -> b) -> ColumnAliasList a -> ColumnAliasList a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColumnAliasList a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColumnAliasList a -> r #

gmapQ :: (forall d. Data d => d -> u) -> ColumnAliasList a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ColumnAliasList a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColumnAliasList a -> m (ColumnAliasList a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColumnAliasList a -> m (ColumnAliasList a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColumnAliasList a -> m (ColumnAliasList a) #

Ord a => Ord (ColumnAliasList a) Source # 
Show a => Show (ColumnAliasList a) Source # 
Generic (ColumnAliasList a) Source # 

Associated Types

type Rep (ColumnAliasList a) :: * -> * #

ToJSON a => ToJSON (ColumnAliasList a) Source # 
type Rep (ColumnAliasList a) Source # 
type Rep (ColumnAliasList a) = D1 * (MetaData "ColumnAliasList" "Database.Sql.Type.Scope" "queryparser-0.1.0.1-L3r1ujeH5Ss7CLthXKM008" True) (C1 * (MetaCons "ColumnAliasList" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [ColumnAlias a])))

data SchemaMember Source #

Instances

Eq SchemaMember Source # 
Data SchemaMember Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaMember -> c SchemaMember #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaMember #

toConstr :: SchemaMember -> Constr #

dataTypeOf :: SchemaMember -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SchemaMember) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaMember) #

gmapT :: (forall b. Data b => b -> b) -> SchemaMember -> SchemaMember #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaMember -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaMember -> r #

gmapQ :: (forall d. Data d => d -> u) -> SchemaMember -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaMember -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaMember -> m SchemaMember #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaMember -> m SchemaMember #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaMember -> m SchemaMember #

Ord SchemaMember Source # 
Show SchemaMember Source # 
Generic SchemaMember Source # 

Associated Types

type Rep SchemaMember :: * -> * #

Arbitrary CatalogMap Source # 
Arbitrary DatabaseMap Source # 
Arbitrary SchemaMap Source # 
Arbitrary SchemaMember Source # 
type Rep SchemaMember Source # 
type Rep SchemaMember = D1 * (MetaData "SchemaMember" "Database.Sql.Type.Scope" "queryparser-0.1.0.1-L3r1ujeH5Ss7CLthXKM008" False) (C1 * (MetaCons "SchemaMember" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "tableType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * TableType)) (S1 * (MetaSel (Just Symbol "persistence") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Persistence ())))) ((:*:) * (S1 * (MetaSel (Just Symbol "columnsList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [UQColumnName ()])) (S1 * (MetaSel (Just Symbol "viewQuery") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe (Query ResolvedNames ())))))))

data WithColumns r a Source #

Constructors

WithColumns 

data RTableRef a Source #

Instances

Functor RTableRef Source # 

Methods

fmap :: (a -> b) -> RTableRef a -> RTableRef b #

(<$) :: a -> RTableRef b -> RTableRef a #

Foldable RTableRef Source # 

Methods

fold :: Monoid m => RTableRef m -> m #

foldMap :: Monoid m => (a -> m) -> RTableRef a -> m #

foldr :: (a -> b -> b) -> b -> RTableRef a -> b #

foldr' :: (a -> b -> b) -> b -> RTableRef a -> b #

foldl :: (b -> a -> b) -> b -> RTableRef a -> b #

foldl' :: (b -> a -> b) -> b -> RTableRef a -> b #

foldr1 :: (a -> a -> a) -> RTableRef a -> a #

foldl1 :: (a -> a -> a) -> RTableRef a -> a #

toList :: RTableRef a -> [a] #

null :: RTableRef a -> Bool #

length :: RTableRef a -> Int #

elem :: Eq a => a -> RTableRef a -> Bool #

maximum :: Ord a => RTableRef a -> a #

minimum :: Ord a => RTableRef a -> a #

sum :: Num a => RTableRef a -> a #

product :: Num a => RTableRef a -> a #

Traversable RTableRef Source # 

Methods

traverse :: Applicative f => (a -> f b) -> RTableRef a -> f (RTableRef b) #

sequenceA :: Applicative f => RTableRef (f a) -> f (RTableRef a) #

mapM :: Monad m => (a -> m b) -> RTableRef a -> m (RTableRef b) #

sequence :: Monad m => RTableRef (m a) -> m (RTableRef a) #

Eq a => Eq (RTableRef a) Source # 

Methods

(==) :: RTableRef a -> RTableRef a -> Bool #

(/=) :: RTableRef a -> RTableRef a -> Bool #

Data a => Data (RTableRef a) Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RTableRef a -> c (RTableRef a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (RTableRef a) #

toConstr :: RTableRef a -> Constr #

dataTypeOf :: RTableRef a -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (RTableRef a)) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (RTableRef a)) #

gmapT :: (forall b. Data b => b -> b) -> RTableRef a -> RTableRef a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RTableRef a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RTableRef a -> r #

gmapQ :: (forall d. Data d => d -> u) -> RTableRef a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RTableRef a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RTableRef a -> m (RTableRef a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RTableRef a -> m (RTableRef a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RTableRef a -> m (RTableRef a) #

Ord a => Ord (RTableRef a) Source # 
Show a => Show (RTableRef a) Source # 
Generic (RTableRef a) Source # 

Associated Types

type Rep (RTableRef a) :: * -> * #

Methods

from :: RTableRef a -> Rep (RTableRef a) x #

to :: Rep (RTableRef a) x -> RTableRef a #

ToJSON a => ToJSON (RTableRef a) Source # 
Semigroup a => HasInfo (RTableRef a) Source # 

Associated Types

type Info (RTableRef a) :: * Source #

Methods

getInfo :: RTableRef a -> Info (RTableRef a) Source #

type Rep (RTableRef a) Source # 
type Info (RTableRef a) Source # 
type Info (RTableRef a) = a

data RTableName a Source #

Instances

Functor RTableName Source # 

Methods

fmap :: (a -> b) -> RTableName a -> RTableName b #

(<$) :: a -> RTableName b -> RTableName a #

Foldable RTableName Source # 

Methods

fold :: Monoid m => RTableName m -> m #

foldMap :: Monoid m => (a -> m) -> RTableName a -> m #

foldr :: (a -> b -> b) -> b -> RTableName a -> b #

foldr' :: (a -> b -> b) -> b -> RTableName a -> b #

foldl :: (b -> a -> b) -> b -> RTableName a -> b #

foldl' :: (b -> a -> b) -> b -> RTableName a -> b #

foldr1 :: (a -> a -> a) -> RTableName a -> a #

foldl1 :: (a -> a -> a) -> RTableName a -> a #

toList :: RTableName a -> [a] #

null :: RTableName a -> Bool #

length :: RTableName a -> Int #

elem :: Eq a => a -> RTableName a -> Bool #

maximum :: Ord a => RTableName a -> a #

minimum :: Ord a => RTableName a -> a #

sum :: Num a => RTableName a -> a #

product :: Num a => RTableName a -> a #

Traversable RTableName Source # 

Methods

traverse :: Applicative f => (a -> f b) -> RTableName a -> f (RTableName b) #

sequenceA :: Applicative f => RTableName (f a) -> f (RTableName a) #

mapM :: Monad m => (a -> m b) -> RTableName a -> m (RTableName b) #

sequence :: Monad m => RTableName (m a) -> m (RTableName a) #

Eq a => Eq (RTableName a) Source # 

Methods

(==) :: RTableName a -> RTableName a -> Bool #

(/=) :: RTableName a -> RTableName a -> Bool #

Data a => Data (RTableName a) Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RTableName a -> c (RTableName a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (RTableName a) #

toConstr :: RTableName a -> Constr #

dataTypeOf :: RTableName a -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (RTableName a)) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (RTableName a)) #

gmapT :: (forall b. Data b => b -> b) -> RTableName a -> RTableName a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RTableName a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RTableName a -> r #

gmapQ :: (forall d. Data d => d -> u) -> RTableName a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RTableName a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RTableName a -> m (RTableName a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RTableName a -> m (RTableName a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RTableName a -> m (RTableName a) #

Ord a => Ord (RTableName a) Source # 
Show a => Show (RTableName a) Source # 
Generic (RTableName a) Source # 

Associated Types

type Rep (RTableName a) :: * -> * #

Methods

from :: RTableName a -> Rep (RTableName a) x #

to :: Rep (RTableName a) x -> RTableName a #

ToJSON a => ToJSON (RTableName a) Source # 
HasTables (RTableName a) Source # 
Semigroup a => HasInfo (RTableName a) Source # 

Associated Types

type Info (RTableName a) :: * Source #

type Rep (RTableName a) Source # 
type Rep (RTableName a) = D1 * (MetaData "RTableName" "Database.Sql.Type.Scope" "queryparser-0.1.0.1-L3r1ujeH5Ss7CLthXKM008" False) (C1 * (MetaCons "RTableName" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (FQTableName a))) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SchemaMember))))
type Info (RTableName a) Source # 
type Info (RTableName a) = a

data RDropTableName a Source #

Instances

Functor RDropTableName Source # 

Methods

fmap :: (a -> b) -> RDropTableName a -> RDropTableName b #

(<$) :: a -> RDropTableName b -> RDropTableName a #

Foldable RDropTableName Source # 

Methods

fold :: Monoid m => RDropTableName m -> m #

foldMap :: Monoid m => (a -> m) -> RDropTableName a -> m #

foldr :: (a -> b -> b) -> b -> RDropTableName a -> b #

foldr' :: (a -> b -> b) -> b -> RDropTableName a -> b #

foldl :: (b -> a -> b) -> b -> RDropTableName a -> b #

foldl' :: (b -> a -> b) -> b -> RDropTableName a -> b #

foldr1 :: (a -> a -> a) -> RDropTableName a -> a #

foldl1 :: (a -> a -> a) -> RDropTableName a -> a #

toList :: RDropTableName a -> [a] #

null :: RDropTableName a -> Bool #

length :: RDropTableName a -> Int #

elem :: Eq a => a -> RDropTableName a -> Bool #

maximum :: Ord a => RDropTableName a -> a #

minimum :: Ord a => RDropTableName a -> a #

sum :: Num a => RDropTableName a -> a #

product :: Num a => RDropTableName a -> a #

Traversable RDropTableName Source # 

Methods

traverse :: Applicative f => (a -> f b) -> RDropTableName a -> f (RDropTableName b) #

sequenceA :: Applicative f => RDropTableName (f a) -> f (RDropTableName a) #

mapM :: Monad m => (a -> m b) -> RDropTableName a -> m (RDropTableName b) #

sequence :: Monad m => RDropTableName (m a) -> m (RDropTableName a) #

Eq a => Eq (RDropTableName a) Source # 
Data a => Data (RDropTableName a) Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RDropTableName a -> c (RDropTableName a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (RDropTableName a) #

toConstr :: RDropTableName a -> Constr #

dataTypeOf :: RDropTableName a -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (RDropTableName a)) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (RDropTableName a)) #

gmapT :: (forall b. Data b => b -> b) -> RDropTableName a -> RDropTableName a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RDropTableName a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RDropTableName a -> r #

gmapQ :: (forall d. Data d => d -> u) -> RDropTableName a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RDropTableName a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RDropTableName a -> m (RDropTableName a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RDropTableName a -> m (RDropTableName a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RDropTableName a -> m (RDropTableName a) #

Ord a => Ord (RDropTableName a) Source # 
Show a => Show (RDropTableName a) Source # 
Generic (RDropTableName a) Source # 

Associated Types

type Rep (RDropTableName a) :: * -> * #

ToJSON a => ToJSON (RDropTableName a) Source # 
type Rep (RDropTableName a) Source # 
type Rep (RDropTableName a) = D1 * (MetaData "RDropTableName" "Database.Sql.Type.Scope" "queryparser-0.1.0.1-L3r1ujeH5Ss7CLthXKM008" False) ((:+:) * (C1 * (MetaCons "RDropExistingTableName" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (FQTableName a))) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SchemaMember)))) (C1 * (MetaCons "RDropMissingTableName" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (OQTableName a)))))

data RCreateTableName a Source #

Instances

Functor RCreateTableName Source # 

Methods

fmap :: (a -> b) -> RCreateTableName a -> RCreateTableName b #

(<$) :: a -> RCreateTableName b -> RCreateTableName a #

Foldable RCreateTableName Source # 

Methods

fold :: Monoid m => RCreateTableName m -> m #

foldMap :: Monoid m => (a -> m) -> RCreateTableName a -> m #

foldr :: (a -> b -> b) -> b -> RCreateTableName a -> b #

foldr' :: (a -> b -> b) -> b -> RCreateTableName a -> b #

foldl :: (b -> a -> b) -> b -> RCreateTableName a -> b #

foldl' :: (b -> a -> b) -> b -> RCreateTableName a -> b #

foldr1 :: (a -> a -> a) -> RCreateTableName a -> a #

foldl1 :: (a -> a -> a) -> RCreateTableName a -> a #

toList :: RCreateTableName a -> [a] #

null :: RCreateTableName a -> Bool #

length :: RCreateTableName a -> Int #

elem :: Eq a => a -> RCreateTableName a -> Bool #

maximum :: Ord a => RCreateTableName a -> a #

minimum :: Ord a => RCreateTableName a -> a #

sum :: Num a => RCreateTableName a -> a #

product :: Num a => RCreateTableName a -> a #

Traversable RCreateTableName Source # 

Methods

traverse :: Applicative f => (a -> f b) -> RCreateTableName a -> f (RCreateTableName b) #

sequenceA :: Applicative f => RCreateTableName (f a) -> f (RCreateTableName a) #

mapM :: Monad m => (a -> m b) -> RCreateTableName a -> m (RCreateTableName b) #

sequence :: Monad m => RCreateTableName (m a) -> m (RCreateTableName a) #

Eq a => Eq (RCreateTableName a) Source # 
Data a => Data (RCreateTableName a) Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RCreateTableName a -> c (RCreateTableName a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (RCreateTableName a) #

toConstr :: RCreateTableName a -> Constr #

dataTypeOf :: RCreateTableName a -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (RCreateTableName a)) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (RCreateTableName a)) #

gmapT :: (forall b. Data b => b -> b) -> RCreateTableName a -> RCreateTableName a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RCreateTableName a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RCreateTableName a -> r #

gmapQ :: (forall d. Data d => d -> u) -> RCreateTableName a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RCreateTableName a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RCreateTableName a -> m (RCreateTableName a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RCreateTableName a -> m (RCreateTableName a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RCreateTableName a -> m (RCreateTableName a) #

Ord a => Ord (RCreateTableName a) Source # 
Show a => Show (RCreateTableName a) Source # 
Generic (RCreateTableName a) Source # 

Associated Types

type Rep (RCreateTableName a) :: * -> * #

ToJSON a => ToJSON (RCreateTableName a) Source # 
type Rep (RCreateTableName a) Source # 
type Rep (RCreateTableName a) = D1 * (MetaData "RCreateTableName" "Database.Sql.Type.Scope" "queryparser-0.1.0.1-L3r1ujeH5Ss7CLthXKM008" False) (C1 * (MetaCons "RCreateTableName" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (FQTableName a))) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Existence))))

data RCreateSchemaName a Source #

Instances

Functor RCreateSchemaName Source # 
Foldable RCreateSchemaName Source # 

Methods

fold :: Monoid m => RCreateSchemaName m -> m #

foldMap :: Monoid m => (a -> m) -> RCreateSchemaName a -> m #

foldr :: (a -> b -> b) -> b -> RCreateSchemaName a -> b #

foldr' :: (a -> b -> b) -> b -> RCreateSchemaName a -> b #

foldl :: (b -> a -> b) -> b -> RCreateSchemaName a -> b #

foldl' :: (b -> a -> b) -> b -> RCreateSchemaName a -> b #

foldr1 :: (a -> a -> a) -> RCreateSchemaName a -> a #

foldl1 :: (a -> a -> a) -> RCreateSchemaName a -> a #

toList :: RCreateSchemaName a -> [a] #

null :: RCreateSchemaName a -> Bool #

length :: RCreateSchemaName a -> Int #

elem :: Eq a => a -> RCreateSchemaName a -> Bool #

maximum :: Ord a => RCreateSchemaName a -> a #

minimum :: Ord a => RCreateSchemaName a -> a #

sum :: Num a => RCreateSchemaName a -> a #

product :: Num a => RCreateSchemaName a -> a #

Traversable RCreateSchemaName Source # 

Methods

traverse :: Applicative f => (a -> f b) -> RCreateSchemaName a -> f (RCreateSchemaName b) #

sequenceA :: Applicative f => RCreateSchemaName (f a) -> f (RCreateSchemaName a) #

mapM :: Monad m => (a -> m b) -> RCreateSchemaName a -> m (RCreateSchemaName b) #

sequence :: Monad m => RCreateSchemaName (m a) -> m (RCreateSchemaName a) #

Eq a => Eq (RCreateSchemaName a) Source # 
Data a => Data (RCreateSchemaName a) Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RCreateSchemaName a -> c (RCreateSchemaName a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (RCreateSchemaName a) #

toConstr :: RCreateSchemaName a -> Constr #

dataTypeOf :: RCreateSchemaName a -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (RCreateSchemaName a)) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (RCreateSchemaName a)) #

gmapT :: (forall b. Data b => b -> b) -> RCreateSchemaName a -> RCreateSchemaName a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RCreateSchemaName a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RCreateSchemaName a -> r #

gmapQ :: (forall d. Data d => d -> u) -> RCreateSchemaName a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RCreateSchemaName a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RCreateSchemaName a -> m (RCreateSchemaName a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RCreateSchemaName a -> m (RCreateSchemaName a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RCreateSchemaName a -> m (RCreateSchemaName a) #

Ord a => Ord (RCreateSchemaName a) Source # 
Show a => Show (RCreateSchemaName a) Source # 
Generic (RCreateSchemaName a) Source # 

Associated Types

type Rep (RCreateSchemaName a) :: * -> * #

ToJSON a => ToJSON (RCreateSchemaName a) Source # 
type Rep (RCreateSchemaName a) Source # 
type Rep (RCreateSchemaName a) = D1 * (MetaData "RCreateSchemaName" "Database.Sql.Type.Scope" "queryparser-0.1.0.1-L3r1ujeH5Ss7CLthXKM008" False) (C1 * (MetaCons "RCreateSchemaName" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (FQSchemaName a))) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Existence))))

shrinkHashMap :: (Eq k, Hashable k) => forall v. HashMap k v -> [HashMap k v] Source #