Skip to content

Releases: btnguyen2k/gocosmos

v1.1.0

13 Feb 13:35
Compare
Choose a tag to compare

Added/Refactoring

  • Refactored DELETE statement: appending PK values at the end of parameter list is no longer needed.
  • Refactored UPDATE statement: appending PK values at the end of parameter list is no longer needed.
  • Feature: INSERT/UPSERT statement accepts WITH PK clause. Appending PK values at the end of parameter list is no longer needed.

Deprecated

  • Deprecated: WITH singlePK/SINGLE_PK is now deprecated for INSERT/UPSERT, DELETE and UPDATE statements.

Fixed/Improvement

  • Improvement: implement fmt.Stringer
  • Improvement: Conn implements interface driver.Pinger
  • Improvement: Driver implements interface driver.DriverContext
  • Improvement: StmtCreateCollection/StmtAlterCollection/StmtDropCollection implements interface driver.StmtExecContext
  • Improvement: StmtListCollections implements interface driver.StmtQueryContext
  • Improvement: StmtCreateDatabase/StmtAlterDatabase/StmtDropDatabase implements interface driver.StmtExecContext
  • Improvement: StmtListDatabases implements interface driver.StmtQueryContext
  • Improvement: StmtInsert/StmtDelete/StmtUpdate implements interface driver.StmtExecContext
  • Improvement: StmtSelect implements interface driver.StmtQueryContext

v1.0.0

22 Dec 23:14
Compare
Choose a tag to compare

Changed

  • BREAKING: typo fixed, change struct RestReponse to RestResponse
  • BREAKING: bump GO version to v1.18

Added/Refactoring

  • Refactor: remove internal sync.Mutex from OfferInfo
  • Add methods GetApiVersion/GetAutoId/SetAutoId to RestClient struct
  • Refactor: follow go-module-template
  • Refactor: move tests to separated subpackage

Fixed/Improvement

  • Fix CodeQL alerts
  • Dependency: bump github.com/btnguyen2k/consu/checksum to v1.1.0
  • Fix: server may return no content with http status 204 or 304
  • Fix: golang-lint

v0.3.0

17 Jun 01:40
9bd094a
Compare
Choose a tag to compare
  • Change default API version to 2020-07-15.
  • Add Hierarchical Partition Keys (sub-partitions) support.
  • Use PartitionKey version 2 (replacing version 1), hence large PK is always enabled.

v0.2.1

09 Jun 06:41
Compare
Choose a tag to compare
  • Bug fixes, Refactoring & Enhancements.

v0.2.0

14 Mar 10:16
Compare
Choose a tag to compare
  • RestClient:
    • QueryDocuments: enhancements & bug fixed with cross-partition queries.
    • New function QueryDocumentsCrossPartition(QueryReq) *RespQueryDocs do address limitations of QueryDocuments.
  • database/sql driver:
    • Update StmtSelect.Query to better support cross-partition queries.

v0.1.9

04 Jan 11:02
7671e0c
Compare
Choose a tag to compare
  • Update RestClient
    • QueryDocuments: better support cross-partition queries.
    • ListDocuments: support fetching change feed.

v0.1.8

05 Dec 01:24
Compare
Choose a tag to compare
  • REST client: rewrite RestClient.QueryDocuments. TODO:
    • (v0.1.7+) simple cross-partition queries (+paging)
    • [-] cross-partition queries with ordering (+paging) / partial supported if number of pkrange == 1
    • [-] cross-partition queries with group-by (+paging) / partial supported if number of pkrange == 1

v0.1.7

02 Dec 05:18
Compare
Choose a tag to compare
  • REST client: fix a bug where function QueryDocuments does not return all documents if the query is cross-partition.

v0.1.6

16 Feb 12:32
cb1293b
Compare
Choose a tag to compare
  • REST client & Driver for database/sql: fix a bug in function ReplaceOfferForResource caused by a change from v0.1.5.

v0.1.5

16 Feb 11:55
Compare
Choose a tag to compare
  • Fix a bug where no-parameterized query returns error.
  • Fix a bug where database or collection name contains upper-cased characters.