Categorygithub.com/senzing-garage/go-databasing
modulepackage
0.5.4
Repository: https://github.com/senzing-garage/go-databasing.git
Documentation: pkg.go.dev

# README

go-databasing

If you are beginning your journey with Senzing, please start with Senzing Quick Start guides.

You are in the Senzing Garage where projects are "tinkered" on. Although this GitHub repository may help you understand an approach to using Senzing, it's not considered to be "production ready" and is not considered to be part of the Senzing product. Heck, it may not even be appropriate for your application of Senzing!

:warning: WARNING: go-databasing is still in development :warning: _

At the moment, this is "work-in-progress" with Semantic Versions of 0.n.x. Although it can be reviewed and commented on, the recommendation is not to use it yet.

Synopsis

The Senzing go-databasing packages provide access to the Senzing database.

Go Reference Badge Go Report Card Badge License Badge go-test-linux.yaml Badge go-test-darwin.yaml Badge go-test-windows.yaml Badge

golangci-lint.yaml Badge

Overview

The go-database packages support direct access to the Senzing database on the following database engines:

  1. Postgresql
  2. Sqlite
  3. MySQL
  4. MsSQL

Specific uses:

  1. connector: Used to transform a database URL into a database/sql/driver.Connector
  2. postgresql: PostgreSQL-specific calls. Example: Finding current high-water transaction id.
  3. sqlexecutor: Used to read a file of SQL and send to database.

Use

See main.go for an example of use.

Database URLs

References

  1. API documentation
  2. Development
  3. Errors
  4. Examples
  5. Package reference

# Packages

Package checker is used to verify the Senzing database schema has been installed.
Package connector returns a [database/sql/driver.Connector] for a given database URL.
Package connectordb2 has ready-made "database/sql/driver.Connector" for "[github.com/asifjalil/cli]".
Package connectormssql has ready-made [database/sql/driver.Connector] for [github.com/microsoft/go-mssqldb].
Package connectormysql has ready-made [database/sql/driver.Connector] for [github.com/go-sql-driver/mysql].
Package connectororacle has ready-made [database/sql/driver.Connector] for [github.com/godror/godror].
Package connectorpostgresql has ready-made [database/sql/driver.Connector] for [github.com/lib/pq].
Package connectorsqlite has ready-made [database/sql/driver.Connector] for [github.com/mattn/go-sqlite3].
Package dbhelper has database-agnostic helper functions.
Package postgresql has PostgreSQL specific functions.
Package sqlexecutor reads a file of SQL and sends each command to the database.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author