https://github.com/gsiems/go-db-meta
Query database metadata
https://github.com/gsiems/go-db-meta
database meta-data mysql oracle postgresql sql sqlite3
Last synced: 3 months ago
JSON representation
Query database metadata
- Host: GitHub
- URL: https://github.com/gsiems/go-db-meta
- Owner: gsiems
- License: mit
- Created: 2020-12-23T14:09:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-12-25T15:46:23.000Z (3 months ago)
- Last Synced: 2025-12-26T18:18:31.491Z (3 months ago)
- Topics: database, meta-data, mysql, oracle, postgresql, sql, sqlite3
- Language: Go
- Homepage:
- Size: 247 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-db-meta
The goal with this project is to provide a tool for extracting metadata
from various RDBMS engines and presenting that data in a consistent
fashion across engines.
It should be noted that, while the SQL standard information schema is
used to inform the design of this project, this is not intended to
exactly reflect the structure of the standard information schema. It
should also be noted that no two database systems appear to implement
the information_schema the same. See
[information_schema](information_schema/readme.md) for a comparison of
different information_schema implementations.
# Intended uses
* Generate data dictionaries
* Basic DDL extraction/generation
* Database/schema comparisons
* ???
# Supported databases
* PostgreSQL
* SQLite
* MariaDB (work in progress)
* MS-SQL (work in progress)
* MySQL (work in progress)
* Oracle
# Available queries
* CheckConstraints
* Columns
* CurrentCatalog
* Dependencies
* Domains
* Indexes
* PrimaryKeys
* ReferentialConstraints
* Schemata
* Tables
* Types
* UniqueConstraints
# Examples
See the ```_example``` directory.