Skip to content

Introduce Tarantool client DSL #247

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

Closed
wants to merge 1 commit into from

Conversation

nicktorwald
Copy link

Introduce Tarantool client DSL

This DSL includes set of request builders that can be used as a public
API to construct requests. The main idea here is to provide more
natural DSL-like approach to build operations instead of current
abstract types like List<?> or List.

Closes: #212

@coveralls
Copy link

coveralls commented Nov 20, 2019

Coverage Status

Coverage decreased (-2.3%) to 75.405% when pulling 45e4b39 on nicktorwald/gh-212-request-dsl into 061c8d4 on master.

@nicktorwald nicktorwald changed the title nicktorwald/gh-212-request-dsl Introduce Tarantool client DSL Nov 20, 2019
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-212-request-dsl branch from c06f6a9 to 63f1dee Compare November 20, 2019 19:26
This DSL includes set of request builders that can be used as a public
API to construct requests. The main idea here is to provide more
natural DSL-like approach to build operations instead of current
abstract types like List<?> or List<Object>.

Closes: #212
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-212-request-dsl branch from 63f1dee to 45e4b39 Compare November 26, 2019 16:55
ops.upsert(512, Collections.singletonList(3), Arrays.asList(3, "KAMAZ-65224", 65), Arrays.asList("=", 2, 65));
ops.upsert("cars", Collections.singletonList(3), Arrays.asList(3, "KAMAZ-65224", 65), Arrays.asList("=", 2, 65));
ops.execute(
upsertRequest("cars", Collections.singletonList(3), assign(2, 65))
Copy link
Member

Choose a reason for hiding this comment

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

Collections.singletonList(3) → Arrays.asList(3, "KAMAZ-65224", 65)?

@Totktonada
Copy link
Member

@akudiyar, can you look into the API?

@akudiyar
Copy link

@akudiyar, can you look into the API?

Shared my thoughts in the PR with the superset of changes -- #223 (review)
So any comments regarding the API there are applicable in this PR.

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.

Provide a request / a statement object in noSQL API
5 participants