hamsql-0.8.0.0: HamSql

Safe HaskellNone
LanguageHaskell2010

Database.YamSql.Internal.Obj.Table

Documentation

data Table Source #

Instances

Data Table Source # 

Methods

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

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

toConstr :: Table -> Constr #

dataTypeOf :: Table -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Table Source # 

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #

Generic Table Source # 

Associated Types

type Rep Table :: * -> * #

Methods

from :: Table -> Rep Table x #

to :: Rep Table x -> Table #

FromJSON Table Source # 
ToJSON Table Source # 
ToSqlId (SqlContext (Schema, Table)) Source # 
ToSqlId (SqlContext (Schema, Table, Column)) Source # 
type Rep Table Source # 
type Rep Table = D1 (MetaData "Table" "Database.YamSql.Internal.Obj.Table" "hamsql-0.8.0.0-3odSe2l79FgLCGfN2lHmnu" False) (C1 (MetaCons "Table" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "tableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SqlName)) ((:*:) (S1 (MetaSel (Just Symbol "tableDescription") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "tableColumns") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Column])))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "tablePrimaryKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [SqlName])) (S1 (MetaSel (Just Symbol "tableUnique") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [UniqueKey])))) ((:*:) (S1 (MetaSel (Just Symbol "tableForeignKeys") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [ForeignKey]))) (S1 (MetaSel (Just Symbol "tableChecks") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Check])))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "tableInherits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SqlName]))) ((:*:) (S1 (MetaSel (Just Symbol "tablePrivSelect") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SqlName]))) (S1 (MetaSel (Just Symbol "tablePrivInsert") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SqlName]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "tablePrivUpdate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SqlName]))) (S1 (MetaSel (Just Symbol "tablePrivDelete") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SqlName])))) ((:*:) (S1 (MetaSel (Just Symbol "tableTemplates") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SqlName]))) (S1 (MetaSel (Just Symbol "tableTemplateData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [TableTpl]))))))))

data TableTpl Source #

Instances

Data TableTpl Source # 

Methods

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

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

toConstr :: TableTpl -> Constr #

dataTypeOf :: TableTpl -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TableTpl Source # 
Generic TableTpl Source # 

Associated Types

type Rep TableTpl :: * -> * #

Methods

from :: TableTpl -> Rep TableTpl x #

to :: Rep TableTpl x -> TableTpl #

FromJSON TableTpl Source # 
ToJSON TableTpl Source # 
WithName (WithSchema TableTpl) Source # 
type Rep TableTpl Source # 

data Column Source #

Instances

Data Column Source # 

Methods

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

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

toConstr :: Column -> Constr #

dataTypeOf :: Column -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Column Source # 
Generic Column Source # 

Associated Types

type Rep Column :: * -> * #

Methods

from :: Column -> Rep Column x #

to :: Rep Column x -> Column #

FromJSON Column Source # 
ToJSON Column Source # 
ToSqlId (SqlContext (Schema, Table, Column)) Source # 
type Rep Column Source # 

data UniqueKey Source #

Instances

Data UniqueKey Source # 

Methods

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

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

toConstr :: UniqueKey -> Constr #

dataTypeOf :: UniqueKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UniqueKey Source # 
Generic UniqueKey Source # 

Associated Types

type Rep UniqueKey :: * -> * #

FromJSON UniqueKey Source # 
ToJSON UniqueKey Source # 
type Rep UniqueKey Source # 
type Rep UniqueKey = D1 (MetaData "UniqueKey" "Database.YamSql.Internal.Obj.Table" "hamsql-0.8.0.0-3odSe2l79FgLCGfN2lHmnu" False) (C1 (MetaCons "UniqueKey" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "uniquekeyName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SqlName)) (S1 (MetaSel (Just Symbol "uniquekeyColumns") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [SqlName]))))

data ForeignKey Source #

Instances

Data ForeignKey Source # 

Methods

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

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

toConstr :: ForeignKey -> Constr #

dataTypeOf :: ForeignKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ForeignKey Source # 
Generic ForeignKey Source # 

Associated Types

type Rep ForeignKey :: * -> * #

FromJSON ForeignKey Source # 
ToJSON ForeignKey Source # 
type Rep ForeignKey Source # 
type Rep ForeignKey = D1 (MetaData "ForeignKey" "Database.YamSql.Internal.Obj.Table" "hamsql-0.8.0.0-3odSe2l79FgLCGfN2lHmnu" False) (C1 (MetaCons "ForeignKey" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "foreignkeyName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SqlName)) ((:*:) (S1 (MetaSel (Just Symbol "foreignkeyColumns") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [SqlName])) (S1 (MetaSel (Just Symbol "foreignkeyRefTable") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SqlName)))) ((:*:) (S1 (MetaSel (Just Symbol "foreignkeyRefColumns") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [SqlName])) ((:*:) (S1 (MetaSel (Just Symbol "foreignkeyOnDelete") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "foreignkeyOnUpdate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))))))