package
0.0.0-20231107093951-724cd6576cba
Repository: https://github.com/amksd/xo.git
Documentation: pkg.go.dev
# Functions
Errorf logs an error message using the package error logger.
Logf logs a message using the package logger.
MysqlEnums runs a custom query, returning results as Enum.
MysqlEnumValues runs a custom query, returning results as MysqlEnumValue.
MysqlIndexColumns runs a custom query, returning results as IndexColumn.
MysqlProcParams runs a custom query, returning results as ProcParam.
MysqlProcs runs a custom query, returning results as Proc.
MysqlSchema retrieves the schema.
MysqlTableColumns runs a custom query, returning results as Column.
MysqlTableForeignKeys runs a custom query, returning results as ForeignKey.
MysqlTableIndexes runs a custom query, returning results as Index.
MysqlTables runs a custom query, returning results as Table.
MysqlTableSequences runs a custom query, returning results as Sequence.
MysqlViewCreate creates a view for introspection.
MysqlViewDrop drops a view created for introspection.
OracleIndexColumns runs a custom query, returning results as IndexColumn.
OracleProcParams runs a custom query, returning results as ProcParam.
OracleProcs runs a custom query, returning results as Proc.
OracleSchema retrieves the schema.
OracleTableColumns runs a custom query, returning results as Column.
OracleTableForeignKeys runs a custom query, returning results as ForeignKey.
OracleTableIndexes runs a custom query, returning results as Index.
OracleTables runs a custom query, returning results as Table.
OracleTableSequences runs a custom query, returning results as Sequence.
OracleViewCreate creates a view for introspection.
OracleViewDrop drops a view created for introspection.
OracleViewTruncate truncates a view created for introspection.
PostgresEnums runs a custom query, returning results as Enum.
PostgresEnumValues runs a custom query, returning results as EnumValue.
PostgresGetColOrder runs a custom query, returning results as PostgresColOrder.
PostgresIndexColumns runs a custom query, returning results as IndexColumn.
PostgresProcParams runs a custom query, returning results as ProcParam.
PostgresProcs runs a custom query, returning results as Proc.
PostgresSchema retrieves the schema.
PostgresTableColumns runs a custom query, returning results as Column.
PostgresTableForeignKeys runs a custom query, returning results as ForeignKey.
PostgresTableIndexes runs a custom query, returning results as Index.
PostgresTables runs a custom query, returning results as Table.
PostgresTableSequences runs a custom query, returning results as Sequence.
PostgresViewCreate creates a view for introspection.
PostgresViewDrop drops a view created for introspection.
PostgresViewSchema retrieves the schema for a view created for introspection.
SetErrorLogger sets the package error logger.
SetLogger sets the package logger.
Sqlite3IndexColumns runs a custom query, returning results as IndexColumn.
Sqlite3Schema retrieves the schema.
Sqlite3TableColumns runs a custom query, returning results as Column.
Sqlite3TableForeignKeys runs a custom query, returning results as ForeignKey.
Sqlite3TableIndexes runs a custom query, returning results as Index.
Sqlite3Tables runs a custom query, returning results as Table.
Sqlite3TableSequences runs a custom query, returning results as Sequence.
Sqlite3ViewCreate creates a view for introspection.
Sqlite3ViewDrop drops a view created for introspection.
SqlserverIndexColumns runs a custom query, returning results as IndexColumn.
SqlserverProcParams runs a custom query, returning results as ProcParam.
SqlserverProcs runs a custom query, returning results as Proc.
SqlserverSchema retrieves the schema.
SqlserverTableColumns runs a custom query, returning results as Column.
SqlserverTableForeignKeys runs a custom query, returning results as ForeignKey.
SqlserverTableIndexes runs a custom query, returning results as Index.
SqlserverTables runs a custom query, returning results as Table.
SqlserverTableSequences runs a custom query, returning results as Sequence.
SqlserverViewCreate creates a view for introspection.
SqlserverViewDrop drops a view created for introspection.
# Constants
ErrAlreadyExists is the already exists error.
ErrDoesNotExist is the does not exist error.
ErrInvalidStringSlice is the invalid StringSlice error.
ErrMarkedForDeletion is the marked for deletion error.
# Structs
Column is a column.
Enum is a enum.
EnumValue is a enum value.
ErrDecodeFailed is the decode failed error.
ErrInsertFailed is the insert failed error.
ErrUpdateFailed is the update failed error.
ErrUpsertFailed is the upsert failed error.
ForeignKey is a foreign key.
Index is a index.
IndexColumn is a index column.
MysqlEnumValue represents a row from 'mysql.mysql_enum_value'.
PostgresColOrder is a index column order.
Proc is a stored procedure.
ProcParam is a stored procedure param.
Sequence is a sequence.
Table is a table.
# Interfaces
DB is the common interface for database operations that can be used with types from schema 'public'.