Skip to content

Latest commit

 

History

History
241 lines (178 loc) · 9.65 KB

RELEASE-NOTES.md

File metadata and controls

241 lines (178 loc) · 9.65 KB

prom release notes

2023-12-26 - v1.0.0

Changed

  • BREAKING: rename FlavorDefault to FlavorUnknown
  • BREAKING: refactor subpackage sql
  • BREAKING: Cleanup sub packages and examples
  • BREAKING: Refactor to move sub packages to separated repos
  • Breaking: min Go version bumped to 1.18
  • Breaking Change: prom/goredis - logged command changed from cammelCase to snake_case
  • Change: Migrate to github.com/redis/go-redis/v9

Added/Refactoring

  • Feature: Automatically handle parameter parseTime for MySQL driver
  • Add support for Oracle INTERVAL DAY TO SECOND and INTERVAL YEAR TO MONTH
  • Add function DurationToOracleDayToSecond

Fixed/Improvement

  • Fix: Oracle drivers
  • Fix golangci-lint
  • Dependencies update

2022-10-28 - v0.4.1

Bug fixed: AwsDynamodbConnect.PutItemIfNotExistXXX must return (nil, nil) if item already existed.

2022-10-25 - v0.4.0

Move AwsDynamodbConnect, GoRedisConnect, MongoConnect and SqlConnect to sub-packages.

2022-10-24 - v0.3.0

Support simple logging and metrics:

  • New struct CmdExecInfo: information around an executing command.
  • New interface IMetricsLogger: APIs to log command executions and retrieve metrics.
  • Dependency libs updated/upgraded:
    • AWS DynamoDB: github.com/aws/aws-sdk-go v1.44.44
    • Redis: github.com/go-redis/redis/v8 v8.11.5
    • MongoDB: go.mongodb.org/mongo-driver v1.9.1
    • (database/sql driver) Azure Cosmos DB: github.com/btnguyen2k/gocosmos v0.1.6
    • (database/sql driver) MSSQL: github.com/denisenkom/go-mssqldb v0.12.2
    • (database/sql driver) MySQL: github.com/go-sql-driver/mysql v1.6.0
    • (database/sql driver) Oracle: github.com/godror/godror v0.33.3
    • (database/sql driver) PostgreSQL: github.com/jackc/pgx/v4 v4.16.1
    • (database/sql driver) SQLite3: github.com/mattn/go-sqlite3 v1.14.14

2021-10-10 - v0.2.15

  • 'Prom' for AWS DyamoDB:
    • New struct AwsQueryOpt: to supply additional options to AwsDynamodbConnect.QueryItems and AwsDynamodbConnect.QueryItemsWithCallback.
    • AwsDynamodbConnect.QueryItems and AwsDynamodbConnect.QueryItemsWithCallback now support ScanIndexBackward.

2021-09-22 - v0.2.14

  • 'Prom' for AWS DyamoDB: new helper functions:
    • AwsDynamodbWaitForGsiStatus: periodically check if table's GSI status reaches a desired value, or timeout.
    • AwsDynamodbWaitForTableStatus: periodically check if table's status reaches a desired value, or timeout.

2021-09-06 - v0.2.13

2021-08-30 - v0.2.12

2021-03-10 - v0.2.11

2021-02-19 - v0.2.10

2020-12-26 - v0.2.9

2020-10-25 - v0.2.8

  • 'Prom' for go-redis:
    • Add RedisPoolOpts struct.
    • GoRedisConnect.GetClient, GoRedisConnect.GetFailoverClient and GoRedisConnect.GetClusterClient adhere to Redis connection pool settings.
  • 'Prom' for the official Go driver for MongoDB:
    • Add MongoPoolOpts struct.
    • New getter/setter & MongoConnect.Init functions.
    • MongoConnect.NewContext now returns single context.Context result.
    • New functions MongoConnect.NewContextIfNil and MongoConnect.NewContextWithCancel.
  • 'Prom' for database/sql:
    • New getter/setter & SqlConnect.Init functions
    • New db flavor for SQLite
    • SqlConnect.NewContext now returns single context.Context result
    • New functions SqlConnect.NewContextIfNil and SqlConnect.NewContextWithCancel
  • More unit tests.
  • Update dependencies.
  • Other fixes & enhancements.

2020-06-10 - v0.2.7

  • 'Prom' for AWS DyamoDB:
    • AwsDynamodbConnect.PutItemIfNotExist returns (nil, nil) if the item being put already existed.
  • 'Prom' for the official Go driver for MongoDB:
    • Clean up deprecated functions.
  • 'Prom' for database/sql:
    • Clean up deprecated functions.
    • Migrate Oracle driver to github.com/godror/godror due to naming (trademark) issues.
    • Migrate PostgreSQL driver to github.com/jackc/pgx/v4/stdlib.
  • More unit tests.
  • Update dependencies.
  • Other fixes & enhancements.

2019-11-19 - v0.2.6

  • 'Prom' for AWS DyamoDB:
    • New functions AwsDynamodbConnect.BuildxxxInput and AwsDynamodbConnect.xxxWithInput.
    • Doc fixes and updates.

2019-11-17 - v0.2.5

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

2019-11-14 - v0.2.4

  • 'Prom' for AWS DyamoDB:
    • New constants AwsAttrTypeString, AwsAttrTypeNumber and AwsAttrTypeBinary.
    • New constants AwsKeyTypePartition and AwsKeyTypeSort.
    • Add transaction-supported functions.
  • Update dependencies.
  • Other fixes & enhancements.

2019-10-30 - v0.2.3

2019-10-25 - v0.2.2

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