github.com/jimsmart/schema (go): Package schema provides access to database schema metadata, for database/sql drivers.  For further information about current driver support status, see https://github.com/jimsmart/schema  The schema package works alongside database/sql and its underlying driver to provide schema metadata.  Both user permissions and current database/schema effect table visibility.  Use schema.ColumnTypes() to query column type metadata for a single table:  To query table names and column type metadata for all tables, use schema.Tables().  See also https://golang.org/pkg/database/sql/#ColumnType  Note: underlying support for column type metadata is driver implementation specific and somewhat variable.  The same metadata can also be queried for views also:  To obtain a list of columns making up the primary key for a given table:
Keywords: database-schema-metadata|go