Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deleteContainer operation #64

Merged

Conversation

amine-mejaouel
Copy link
Contributor

@amine-mejaouel amine-mejaouel commented Jun 3, 2022

This a proposition for adding a new operation : deleteContainer

This includes:

  • A usage sample in README.md and Samples project
  • A breaking change in the previously named delete operation which is renamed to deleteItem
  • Replacement of let execAsync<'T> (op: ContainerOperation<'T>) = ... with method overloading (see static type Cosmos).
    This is explained by the fact that deleteContainer does not return an AsyncSeq<'t> like all the branches of pattern matches in let execAsync<'T> (op: ContainerOperation<'T>) = ...

also adds these operations:
- containerExists
- getContainerProperties
- databaseExists
@amine-mejaouel
Copy link
Contributor Author

There is also another commit [add deleteContainerIfExists] that adds a new operation along with all the utilities operation needed to make it work.

@aaronpowell aaronpowell merged commit 822f757 into aaronpowell:main Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants