Documentation
¶
Index ¶
Constants ¶
View Source
const ( Bool = "bool" Boolean = "boolean" Str = "str" Int = "int" Float = "float" Decimal = "decimal.Decimal" Any = "typing.Any" )
Python type names emitted into generated code. Bool and Boolean double as SQL type spellings in the conversion tables.
View Source
const ( InformationSchema = "information_schema" PgCatalog = "pg_catalog" )
SQL system schemas whose objects are never rendered as models or enums.
Variables ¶
This section is empty.
Functions ¶
func PostgresTypeToPython ¶
func PostgresTypeToPython(req *plugin.GenerateRequest, config *config.Config, pluginType *plugin.Identifier) string
func SqliteTypeToPython ¶
func SqliteTypeToPython(_ *plugin.GenerateRequest, _ *config.Config, pluginType *plugin.Identifier) string
Types ¶
type TypeConversionFunc ¶
type TypeConversionFunc func(*plugin.GenerateRequest, *config.Config, *plugin.Identifier) string
func GetTypeConversionFunc ¶ added in v0.5.0
func GetTypeConversionFunc(engine string) (TypeConversionFunc, error)
Click to show internal directories.
Click to hide internal directories.