/prom

Utility library to manage shared connection in Golang

Primary LanguageGoMIT LicenseMIT

prom

Go Report Card GoDoc

Utility library to manage shared connection in Golang.

Documentation

Go version, direct and tested dependencies: see go.mod.

History

2019-11-19 - v0.2.6

  • AwsDynamodbConnect:
    • New functions BuildxxxInput and xxxWithInput.
    • Doc fixes and updates.

2019-11-17 - v0.2.5

  • AwsDynamodbConnect:
    • Add new function IsAwsError(err error, code string) bool
    • No longer ignore certain AWS errors, lets caller decide to call AwsIgnoreErrorIfMatched if needed.
  • Update dependency libs.
  • Other fixes & enhancements.

2019-11-14 - v0.2.4

  • AwsDynamodbConnect:
    • New constants AwsAttrTypeString, AwsAttrTypeNumber and AwsAttrTypeBinary.
    • New constants AwsKeyTypePartition and AwsKeyTypeSort.
    • Add transaction-supported functions.
  • Update dependency libs.
  • Other fixes & enhancements.

2019-10-30 - v0.2.3

  • MongoConnect: fixed a bug that incorrectly creates collection index when passing mongo.IndexModel as parameter.

2019-10-25 - v0.2.2

  • Change MongoConnect.Ping(timeoutMs ...int) to MongoConnect.Ping(ctx context.Context).
  • Bump Go version to 1.12 and update dependencies.
  • Other fixes & enhancements.

2019-10-14 - v0.2.1

2019-10-12 - v0.2.0

2019-09-14 - v0.1.3

2019-04-03 - v0.1.2

  • 'Prom' for database/sql:
    • Add timezone location attribute to SqlConnect struct.
    • Correctly parse date/time data from db using timezone location attribute.

2019-04-01 - v0.1.1

2019-03-27 - v0.1.0

  • Migrated Go modular design.
  • Add DbFlavor:
    • New method NewSqlConnectWithFlavor
  • SqlConnect.fetchOneRow fetches correct column's data type instead of []byte for MySQL. This makes results of SqlConnect.FetchRows and SqlConnect.FetchRowsCallback are correctly typed, too.
  • Update examples for MongoDB, MySQL and PostgreSQL.
  • Add examples for MSSQL and Oracle DB.

2019-03-19 - v0.0.4

2019-03-08 - v0.0.3.1

  • 'Prom' for the official Go driver for MongoDB: add 2 functions
    • DecodeSingleResultRaw(*mongo.SingleResult) (string, error)
    • DecodeResultCallbackRaw(context.Context, *mongo.Cursor, func(docNum int, doc string, err error))
  • Bug fixes & refactoring.

2019-03-05 - v0.0.3

2019-03-04 - v0.0.2

  • Function DecodeSingleResult and DecodeResultCallback are now attached to *MongoConnect
  • Change Mongo's timeout parameter from int64 to int

2019-02-28 - v0.0.1

License

MIT - see LICENSE.md.