Skip to content
forked from jimsmart/schema

schema is a Go package providing access to database schema metadata, for database/sql drivers.

License

Notifications You must be signed in to change notification settings

P7CoreOrg/schema

 
 

Repository files navigation

schema

BSD3 Build Status codecov Go Report Card Used By Godoc

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

Installation

$ go get github.com/jimsmart/schema
import "github.com/jimsmart/schema"

Dependencies

  • 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.

Example

See GoDocs for usage examples.

Documentation

GoDocs https://godoc.org/github.com/jimsmart/schema

Testing

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

License

Package schema is copyright 2018 by Jim Smart and released under the BSD 3-Clause License

About

schema is a Go package providing access to database schema metadata, for database/sql drivers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%