Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data TableInfo = TableInfo {
- tableName :: Text
- tableSchema :: Text
- tableColumns :: [ColumnInfo]
- data ColumnInfo = ColumnInfo {
- columnTableSchema :: Text
- columnTableName :: Text
- columnName :: Text
- columnType :: ColumnType
- columnNullable :: Bool
- primaryKey :: Bool
- autoIncrement :: Bool
- foreignKey :: Maybe (Text, Text, Text)
- fetchTableInfo :: MySQLConn -> [Text] -> IO [TableInfo]
- data Sign
- data ColumnType
- = TinyIntColumn Sign
- | SmallIntColumn Sign
- | MediumIntColumn Sign
- | IntColumn Sign
- | BigIntColumn Sign
- | DecimalColumn Int Int Sign
- | VarCharColumn Int
- | CharColumn Int
- | TextColumn
- | BlobColumn
- | DateTimeColumn Int
- | TimestampColumn Int
- | DateColumn
- | TimeColumn Int
- | DoubleColumn
- | FloatColumn
- | EnumColumn [Text]
- | SetColumn [Text]
- | BinaryColumn Int
- | VarBinaryColumn Int
- | BitColumn Int
- | JsonColumn
- pprTableInfo :: Text -> [TableInfo] -> Text
- data Properties = Properties {
- fieldNameModifier :: String -> String
- tableNameModifier :: String -> String
- classNameModifier :: String -> String
- includeInsertor :: Bool
- insertorTypeModifier :: String -> String
- insertorNameModifier :: String -> String
- insertorFieldModifier :: String -> String
- defaultProperties :: Properties
- makeDBTypes :: Properties -> Name -> [TableInfo] -> Q [Dec]
Documentation
TableInfo | |
|
data ColumnInfo Source #
ColumnInfo | |
|
Instances
Show ColumnInfo Source # | |
Defined in Database.MySQL.Hasqlator.Typed.Schema showsPrec :: Int -> ColumnInfo -> ShowS # show :: ColumnInfo -> String # showList :: [ColumnInfo] -> ShowS # |
fetchTableInfo :: MySQLConn -> [Text] -> IO [TableInfo] Source #
Fetch TableInfo structures for each of the given schemas, using
the given MySQLConn
connection.
data ColumnType Source #
Instances
Show ColumnType Source # | |
Defined in Database.MySQL.Hasqlator.Typed.Schema showsPrec :: Int -> ColumnType -> ShowS # show :: ColumnType -> String # showList :: [ColumnType] -> ShowS # |
data Properties Source #
Properties | |
|
makeDBTypes :: Properties -> Name -> [TableInfo] -> Q [Dec] Source #