Skip to content

Commit 48d20d1

Browse files
committed
Cosmos 3 port
1 parent 4082654 commit 48d20d1

File tree

5 files changed

+86
-115
lines changed

5 files changed

+86
-115
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The `Unreleased` section name is replaced by the expected version of next releas
1111
### Added
1212
### Changed
1313

14+
- now targets `Microsoft.Azure.Cosmos` v `3.1.1` (instead of `Microsoft.Azure.DocumentDB`[`.Core`] v 2.x) [#144](https://github.com/jet/equinox/pull/144)
1415
- Updated README.md to refer to `propulsion init` and `propulsion project` (formerly `eqx` `initAux` and `project`) (jet/propulsion#17)[https://github.com/jet/propulsion/pull/17]
1516
- `eqx project` now uses environment variables `PROPULSION_KAFKA_`* instead of `EQUINOX_`* [#143](https://github.com/jet/equinox/pull/143)
1617
- `Equinox.Cosmos` now uses `Container` in preference to `Collection`, in alignment with the `Microsoft.Azure.Cosmos` SDK's standardized naming, _and other minor changes, see PR for details_ [#149](https://github.com/jet/equinox/pull/149)

samples/Infrastructure/Storage.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module Cosmos =
2828

2929
type [<NoEquality; NoComparison>] Arguments =
3030
| [<AltCommandLine("-vs")>] VerboseStore
31-
| [<AltCommandLine("-m")>] ConnectionMode of Equinox.Cosmos.ConnectionMode
31+
| [<AltCommandLine("-m")>] ConnectionMode of Microsoft.Azure.Cosmos.ConnectionMode
3232
| [<AltCommandLine("-o")>] Timeout of float
3333
| [<AltCommandLine("-r")>] Retries of int
3434
| [<AltCommandLine("-rt")>] RetriesWaitTime of int
@@ -47,7 +47,7 @@ module Cosmos =
4747
| Database _ -> "specify a database name for store (defaults: envvar:EQUINOX_COSMOS_DATABASE, test)."
4848
| Container _ -> "specify a container name for store (defaults: envvar:EQUINOX_COSMOS_CONTAINER, test)."
4949
type Info(args : ParseResults<Arguments>) =
50-
member __.Mode = args.GetResult(ConnectionMode,Equinox.Cosmos.ConnectionMode.Direct)
50+
member __.Mode = args.GetResult(ConnectionMode,Microsoft.Azure.Cosmos.ConnectionMode.Direct)
5151
member __.Connection = match args.TryGetResult Connection with Some x -> x | None -> envBackstop "Connection" "EQUINOX_COSMOS_CONNECTION"
5252
member __.Database = match args.TryGetResult Database with Some x -> x | None -> envBackstop "Database" "EQUINOX_COSMOS_DATABASE"
5353
member __.Container = match args.TryGetResult Container with Some x -> x | None -> envBackstop "Container" "EQUINOX_COSMOS_CONTAINER"

0 commit comments

Comments
 (0)