Releases: btnguyen2k/gocosmos
Releases · btnguyen2k/gocosmos
v1.1.0
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
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
- 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
- Bug fixes, Refactoring & Enhancements.
v0.2.0
RestClient
:QueryDocuments
: enhancements & bug fixed with cross-partition queries.- New function
QueryDocumentsCrossPartition(QueryReq) *RespQueryDocs
do address limitations ofQueryDocuments
.
database/sql
driver:- Update
StmtSelect.Query
to better support cross-partition queries.
- Update
v0.1.9
- Update
RestClient
QueryDocuments
: better support cross-partition queries.ListDocuments
: support fetching change feed.
v0.1.8
- 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
- REST client: fix a bug where function
QueryDocuments
does not return all documents if the query is cross-partition.
v0.1.6
- REST client & Driver for
database/sql
: fix a bug in functionReplaceOfferForResource
caused by a change from v0.1.5.
v0.1.5
- Fix a bug where no-parameterized query returns error.
- Fix a bug where database or collection name contains upper-cased characters.