Skip to content

Commit 1cdf4b1

Browse files
Add support for computedValues into collection inventory (#417)
Co-authored-by: jwierzbo <[email protected]>
1 parent 4dd0e70 commit 1cdf4b1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Add `hex` property to analyzer's properties
55
- Add support for `computedValues`
66
- Optional `computeOn` field in `computedValues`
7+
- Add support for `computedValues` into collection inventory
78

89
## [1.3.3](https://github.com/arangodb/go-driver/tree/v1.3.3) (2022-07-27)
910
- Fix `lastValue` field type

cluster.go

+2
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ type InventoryCollectionParameters struct {
289289
WaitForSync bool `json:"waitForSync,omitempty"`
290290
// Available from 3.6 ArangoD version.
291291
WriteConcern int `json:"writeConcern,omitempty"`
292+
// Available from 3.10 ArangoD version.
293+
ComputedValues []ComputedValue `json:"computedValues,omitempty"`
292294
}
293295

294296
// IsSatellite returns true if the collection is a satellite collection

cluster_impl.go

+4
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ type inventoryCollectionParametersInternal struct {
319319
WaitForSync bool `json:"waitForSync,omitempty"`
320320
// Available from 3.6 ArangoD version.
321321
WriteConcern int `json:"writeConcern,omitempty"`
322+
// Available from 3.10 ArangoD version.
323+
ComputedValues []ComputedValue `json:"computedValues,omitempty"`
322324
}
323325

324326
func (p *InventoryCollectionParameters) asInternal() inventoryCollectionParametersInternal {
@@ -370,6 +372,7 @@ func (p *InventoryCollectionParameters) asInternal() inventoryCollectionParamete
370372
UsesRevisionsAsDocumentIds: p.UsesRevisionsAsDocumentIds,
371373
WaitForSync: p.WaitForSync,
372374
WriteConcern: p.WriteConcern,
375+
ComputedValues: p.ComputedValues,
373376
}
374377
}
375378

@@ -424,6 +427,7 @@ func (p *inventoryCollectionParametersInternal) asExternal() InventoryCollection
424427
UsesRevisionsAsDocumentIds: p.UsesRevisionsAsDocumentIds,
425428
WaitForSync: p.WaitForSync,
426429
WriteConcern: p.WriteConcern,
430+
ComputedValues: p.ComputedValues,
427431
}
428432
}
429433

0 commit comments

Comments
 (0)