schema is a Go package providing access to database schema metadata, for database/sql drivers.
TODO more docs
Currently supporting the following database engines / SQL dialects:
- Microsoft SQL Server
- MySQL
- Oracle
- Postgres
- SQLite
For a list of supported drivers, and their capabilities with regards to sql.ColumnType support, see drivercaps
$ go get github.com/jimsmart/schema
import "github.com/jimsmart/schema"
- A supported database driver.
- Standard library.
- Ginkgo and Gomega if you wish to run the tests.
- Tests also require various database drivers to be installed and configured.
See GoDocs for usage examples.
GoDocs https://godoc.org/github.com/jimsmart/schema
Note that a moderate amount of database setup and configuration is required for successful execution of the tests.
To run the tests execute go test
inside the project folder.
For a full coverage report, try:
$ go test -coverprofile=coverage.out && go tool cover -html=coverage.out
Package schema is copyright 2018 by Jim Smart and released under the BSD 3-Clause License