Skip to content

datastore: Expose entity identification functions.#2645

Merged
stephenplusplus merged 2 commits intogoogleapis:masterfrom
beaulac:feature/datastore-entity-identification
Oct 10, 2017
Merged

datastore: Expose entity identification functions.#2645
stephenplusplus merged 2 commits intogoogleapis:masterfrom
beaulac:feature/datastore-entity-identification

Conversation

@beaulac
Copy link
Contributor

@beaulac beaulac commented Oct 2, 2017

Closes #2503

Adds functionality to check if values are datastore object types (Int, Double, GeoPoint, and Key).

4 new methods are added to datastore namespace and prototype:

  • isInt
  • isDouble
  • isGeoPoint
  • isKey

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 2, 2017
@beaulac beaulac force-pushed the feature/datastore-entity-identification branch from 57ea569 to f9b8f4a Compare October 3, 2017 23:38
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f9b8f4a on beaulac:feature/datastore-entity-identification into c48d27f on GoogleCloudPlatform:master.

* @example
* datastore.isDouble(0.42); // false
* datastore.isDouble(datastore.double(0.42)); // true
*/

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus stephenplusplus added the api: datastore Issues related to the Datastore API. label Oct 10, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0c285a3 on beaulac:feature/datastore-entity-identification into c48d27f on GoogleCloudPlatform:master.

@stephenplusplus stephenplusplus merged commit 9ecca41 into googleapis:master Oct 10, 2017
@stephenplusplus
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: datastore Issues related to the Datastore API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants