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

feat: Apply schema from collection model #62

Merged
merged 2 commits into from
Apr 20, 2022
Merged

feat: Apply schema from collection model #62

merged 2 commits into from
Apr 20, 2022

Conversation

JigarJoshi
Copy link
Collaborator

BREAKING CHANGE: Removed api to apply schema from dir and from JSON files.

  • added API to apply schemas from collection model.

@JigarJoshi JigarJoshi force-pushed the 60_2 branch 2 times, most recently from 766fe0d to 33095be Compare April 20, 2022 17:18
* @return future to the {@link ApplySchemasResponse}
*/
CompletableFuture<ApplySchemasResponse> applySchemas(List<URL> collectionsSchemas);
CompletableFuture<ApplySchemasResponse> applySchemas(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should call this CreateOrUpdateCollections now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the method name.

* @return response
* @throws TigrisDBException in case of an error.
*/
TigrisDBResponse applySchemas(File schemaDirectory) throws TigrisDBException;
TigrisDBResponse applySchemas(Class<? extends TigrisCollectionType>... collectionModelTypes)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the method name.

@JigarJoshi JigarJoshi merged commit 3069f6c into main Apr 20, 2022
@JigarJoshi JigarJoshi deleted the 60_2 branch April 21, 2022 17:28
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.

2 participants