package
0.0.0-20231107093951-724cd6576cba
Repository: https://github.com/amksd/xo.git
Documentation: pkg.go.dev
# Functions
EnableOids returns the EnableOids value from the context.
Enums returns the database enums.
EnumValues returns the database enum values.
Flags returns the additional flags for the loaders.
IndexColumns returns the database index columns.
MysqlEnumValues loads the enum values.
MysqlGoType parse a mysql type into a Go type based on the column definition.
NthParam returns a 0-based func to generate the nth param placeholder for database queries.
OracleGoType parse a oracle type into a Go type based on the column definition.
PostgresFlags returnss the postgres flags.
PostgresGoType parse a type into a Go type based on the database type definition.
PostgresIndexColumns returns the column list for an index.
PostgresTableColumns returns the columns for a table.
PostgresViewStrip strips '::type AS name' in queries.
ProcParams returns the database proc params.
Procs returns the database procs.
Register registers a database loader.
Schema loads the active schema name from the context.
Sqlite3GoType parse a sqlite3 type into a Go type based on the column definition.
SqlserverGoType parse a mssql type into a Go type based on the column definition.
SqlserverViewStrip strips ORDER BY clauses from the passed query.
TableColumns returns the database table columns.
TableForeignKeys returns the database table foreign keys.
TableIndexes returns the database table indexes.
Tables returns the database tables.
TableSequences returns the database table sequences.
ViewCreate creates a introspection view of a query.
ViewDrop drops the introspection view.
ViewSchema returns the schema that the introspection view was created in.
ViewStrip post processes the query and inspected query, altering as necessary and building a set of comments for the query.
ViewTruncate truncates the introspection view.
# Constants
OidsKey is the oids context key.