{"id":18976075,"url":"https://github.com/jimsmart/drivercaps","last_synced_at":"2026-03-03T21:32:16.723Z","repository":{"id":57486583,"uuid":"123148813","full_name":"jimsmart/drivercaps","owner":"jimsmart","description":"drivercaps is a Go package to analyse and report database/sql drivers' column type metadata capabilities.","archived":false,"fork":false,"pushed_at":"2018-03-01T03:31:43.000Z","size":190,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-13T21:42:45.477Z","etag":null,"topics":["feature-tests","go","sql-driver"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimsmart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-27T15:28:55.000Z","updated_at":"2021-01-13T03:09:32.000Z","dependencies_parsed_at":"2022-09-01T21:02:17.475Z","dependency_job_id":null,"html_url":"https://github.com/jimsmart/drivercaps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jimsmart/drivercaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimsmart%2Fdrivercaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimsmart%2Fdrivercaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimsmart%2Fdrivercaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimsmart%2Fdrivercaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimsmart","download_url":"https://codeload.github.com/jimsmart/drivercaps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimsmart%2Fdrivercaps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30062412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feature-tests","go","sql-driver"],"created_at":"2024-11-08T15:22:15.668Z","updated_at":"2026-03-03T21:32:16.707Z","avatar_url":"https://github.com/jimsmart.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drivercaps\n\n[![BSD3](https://img.shields.io/badge/license-BSD3-blue.svg?style=flat)](LICENSE.md)\n\ndrivercaps is a [Go](https://golang.org) package to analyse and report database/sql drivers' column metadata capabilities.\n\nTODO more docs\n\n## Why?\n\nDifferent database drivers have varying levels of support for [sql.ColumnType](https://golang.org/pkg/database/sql/#ColumnType), this project shines some light on the subject.\n\n## What?\n\nCurrently supporting the following database engines:\n\n- Microsoft SQL Server\n- MySQL\n- Oracle\n- Postgres\n- SQLite\n\n## Driver sql.ColumnType Capability Reports\n\nTODO generate report table (vs manual maintenance)\n\nDriver | Database | Report | .Name\u003cbr/\u003eSupport | .DBTypeName\u003cbr/\u003eSupport | .Nullable\u003cbr/\u003eSupport | .DecimalSize\u003cbr/\u003eSupport | .Length\u003cbr/\u003eSupport | .ScanType\u003cbr/\u003eSupport\n---|---|---|---|---|---|---|---|---\ngithub.com/denisenkom/go-mssqldb | MS SQL Server | [View](https://github.com/jimsmart/drivercaps/tree/master/mssql/denisenkom) | Yes | Yes | Yes | Yes | Yes | Typed\ngithub.com/minus5/gofreetds | MS SQL Server | [View](https://github.com/jimsmart/drivercaps/tree/master/mssql/minus5) | Yes | No | No | No | No | Default \u0026#91;1\u0026#93;\ngithub.com/go-sql-driver/mysql | MySQL | [View](https://github.com/jimsmart/drivercaps/tree/master/mysql/gosqldriver) | Yes | Yes | Yes | Mostly \u0026#91;2\u0026#93; | No | Typed\ngithub.com/ziutek/mymysql | MySQL | [View](https://github.com/jimsmart/drivercaps/tree/master/mysql/ziutek) | Yes | No | No | No | No | Default \u0026#91;1\u0026#93;\ngithub.com/go-goracle/goracle | Oracle | [View](https://github.com/jimsmart/drivercaps/tree/master/oracle/goracle) | Yes | Yes | Yes | Mostly \u0026#91;3\u0026#93; | Yes | Typed\ngithub.com/mattn/go-oci8 | Oracle | [View](https://github.com/jimsmart/drivercaps/tree/master/oracle/mattn) | Yes | Invalid \u0026#91;4\u0026#93; | No | No | Yes | Invalid \u0026#91;5\u0026#93;\ngithub.com/rana/ora | Oracle | [View](https://github.com/jimsmart/drivercaps/tree/master/oracle/rana) | Yes | Yes | Invalid \u0026#91;6\u0026#93; | Kinda \u0026#91;7\u0026#93; | Yes | Typed \u0026#91;8\u0026#93;\ngithub.com/jackc/pgx | Postgres | [View](https://github.com/jimsmart/drivercaps/tree/master/postgres/jackc) | Yes | Yes | No | Kinda \u0026#91;9\u0026#93; | Yes | Typed\ngithub.com/jbarham/gopgsqldriver | Postgres | [View](https://github.com/jimsmart/drivercaps/tree/master/postgres/jbarham) | Yes | No | No | No | No | Default \u0026#91;1\u0026#93;\ngithub.com/lib/pq | Postgres | [View](https://github.com/jimsmart/drivercaps/tree/master/postgres/lib) | Yes | Yes | No | Kinda \u0026#91;9\u0026#93; | Yes | Typed\ngithub.com/gwenn/gosqlite | SQLite | [View](https://github.com/jimsmart/drivercaps/tree/master/sqlite/gwenn) | Yes | Yes \u0026#91;10\u0026#93; | No | No | No | Invalid \u0026#91;11\u0026#93;\ngithub.com/mattn/go-sqlite3 | SQLite | [View](https://github.com/jimsmart/drivercaps/tree/master/sqlite/mattn) | Yes | Yes \u0026#91;10\u0026#93; | Invalid \u0026#91;6\u0026#93; | No | No | Invalid \u0026#91;11\u0026#93;\ngithub.com/mxk/go-sqlite | SQLite | [View](https://github.com/jimsmart/drivercaps/tree/master/sqlite/mxk) | Yes | No | No | No | No | Default \u0026#91;1\u0026#93;\n\n\u0026#91;1\u0026#93; interface{} only\u003cbr/\u003e\n\u0026#91;2\u0026#93; float and double types have invalid precision and scale value MaxInt64\u003cbr/\u003e\n\u0026#91;3\u0026#93; number and float have invalid default scale value -127, float type has invalid? default precision value 126\u003cbr/\u003e\n\u0026#91;4\u0026#93; exposes only internal type codenames\u003cbr/\u003e\n\u0026#91;5\u0026#93; invalid scan type []string\u003cbr/\u003e\n\u0026#91;6\u0026#93; reports everything as nullable\u003cbr/\u003e\n\u0026#91;7\u0026#93; number and float types have invalid scale value -127\u003cbr/\u003e\n\u0026#91;8\u0026#93; binary_float and binary_double have invalid scan type nil\u003cbr/\u003e\n\u0026#91;9\u0026#93; numeric and decimal types have invalid default precision and scale values 65535, 65531\u003cbr/\u003e\n\u0026#91;10\u0026#93; type name includes length and precision values\u003cbr/\u003e\n\u0026#91;11\u0026#93; invalid scan type nil\n\n## Installation\n\nTo install and produce your own reports locally:\n\n```bash\n$ go get github.com/jimsmart/drivercaps\n```\n\n## Usage\n\nChange directory to the drivercaps root folder and execute:\n\n```bash\n$ go test -test.v ./...\n```\n\n## Output\n\nAfter execution, capability reports for each driver can be found in the leaf folders of the package, e.g.\n\n- drivercaps/oracle/goracle/report.csv\n- drivercaps/oracle/goracle/report.txt\n- drivercaps/oracle/goracle/README.md\n- drivercaps/postgres/jackc/report.csv\n- etc.\n\n## License\n\nPackage drivercaps is copyright 2018 by Jim Smart and released under the [BSD 3-Clause License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimsmart%2Fdrivercaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimsmart%2Fdrivercaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimsmart%2Fdrivercaps/lists"}