All Projects → googleapis → Nodejs Datastore

googleapis / Nodejs Datastore

Licence: apache-2.0
Node.js client for Google Cloud Datastore: a highly-scalable NoSQL database for your web and mobile applications.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Nodejs Datastore

AloeDB
Light, Embeddable, NoSQL database for Deno 🦕
Stars: ✭ 111 (-31.06%)
Mutual labels:  nosql, datastore
dndb
A Deno 🦕 persistent, embeddable and optimized NoSQL database for JS & TS
Stars: ✭ 64 (-60.25%)
Mutual labels:  nosql, datastore
Corfudb
A cluster consistency platform
Stars: ✭ 539 (+234.78%)
Mutual labels:  datastore, nosql
Grandnode
Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js.
Stars: ✭ 1,768 (+998.14%)
Mutual labels:  nosql
Cms
Node.js Content Management System
Stars: ✭ 131 (-18.63%)
Mutual labels:  nosql
Jnosql
Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.
Stars: ✭ 145 (-9.94%)
Mutual labels:  nosql
Codis
Proxy based Redis cluster solution supporting pipeline and scaling dynamically
Stars: ✭ 12,285 (+7530.43%)
Mutual labels:  nosql
Js Data
Give your data the treatment it deserves with a framework-agnostic, datastore-agnostic JavaScript ORM built for ease of use and peace of mind. Works in Node.js and in the Browser. Main Site: http://js-data.io, API Reference Docs: http://api.js-data.io/js-data
Stars: ✭ 1,599 (+893.17%)
Mutual labels:  datastore
Tera
An Internet-Scale Database.
Stars: ✭ 1,846 (+1046.58%)
Mutual labels:  nosql
Stampede
The ToroDB solution to provide better analytics on top of MongoDB and make it easier to migrate from MongoDB to SQL
Stars: ✭ 1,754 (+989.44%)
Mutual labels:  nosql
Dynomite
⚡🦀 🧨 make your rust types fit DynamoDB and visa versa
Stars: ✭ 144 (-10.56%)
Mutual labels:  nosql
Elasticsearch tutorial
An action-packed, example-based ElasticSearch tutorial
Stars: ✭ 133 (-17.39%)
Mutual labels:  nosql
Tendis
Tendis is a high-performance distributed storage system fully compatible with the Redis protocol.
Stars: ✭ 2,295 (+1325.47%)
Mutual labels:  nosql
Ardb
A redis protocol compatible nosql, it support multiple storage engines as backend like Google's LevelDB, Facebook's RocksDB, OpenLDAP's LMDB, PerconaFT, WiredTiger, ForestDB.
Stars: ✭ 1,707 (+960.25%)
Mutual labels:  nosql
Nds
A Go (golang) Google App Engine datastore package with strongly consistent caching.
Stars: ✭ 154 (-4.35%)
Mutual labels:  datastore
Db Tutorial
💾 db-tutorial 是一个数据库教程。
Stars: ✭ 128 (-20.5%)
Mutual labels:  nosql
Litedb.fsharp
Advanced F# Support for LiteDB, an embedded NoSql database for .NET with type-safe query expression through F# quotations
Stars: ✭ 147 (-8.7%)
Mutual labels:  nosql
Go Cache
This project encapsulates multiple db servers, redis、ledis、memcache、file、memory、nosql、postgresql
Stars: ✭ 143 (-11.18%)
Mutual labels:  nosql
Arangodb
🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
Stars: ✭ 11,880 (+7278.88%)
Mutual labels:  nosql
Nuster
A high performance HTTP proxy cache server and RESTful NoSQL cache server based on HAProxy
Stars: ✭ 1,825 (+1033.54%)
Mutual labels:  nosql

Google Cloud Platform logo

Google Cloud Datastore: Node.js Client

release level npm version codecov

Cloud Datastore Client Library for Node.js

A comprehensive list of changes in each version may be found in the CHANGELOG.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.
  2. Enable the Google Cloud Datastore API.
  3. Set up authentication with a service account so you can access the API from your local workstation.

Installing the client library

npm install @google-cloud/datastore

Using the client library

// Imports the Google Cloud client library
const {Datastore} = require('@google-cloud/datastore');

// Creates a client
const datastore = new Datastore();

async function quickstart() {
  // The kind for the new entity
  const kind = 'Task';

  // The name/ID for the new entity
  const name = 'sampletask1';

  // The Cloud Datastore key for the new entity
  const taskKey = datastore.key([kind, name]);

  // Prepares the new entity
  const task = {
    key: taskKey,
    data: {
      description: 'Buy milk',
    },
  };

  // Saves the entity
  await datastore.save(task);
  console.log(`Saved ${task.key.name}: ${task.data.description}`);
}
quickstart();

Troubleshooting

Emulator returning DEADLINE_EXCEEDED, java.lang.OutOfMemoryError

Reference Issue: #95

When using the emulator, you may experience errors such as "DEADLINE_EXCEEDED" within your application, corresponding to an error in the emulator: "java.lang.OutOfMemoryError". These errors are unique to the emulator environment and will not persist in production.

A workaround is available, provided by @ohmpatel1997 here.

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

Sample Source Code Try it
Concepts source code Open in Cloud Shell
Error source code Open in Cloud Shell
Export source code Open in Cloud Shell
Import source code Open in Cloud Shell
Indexes.get source code Open in Cloud Shell
Indexes.list source code Open in Cloud Shell
Quickstart source code Open in Cloud Shell
Add Task source code Open in Cloud Shell
Delete Task source code Open in Cloud Shell
Legacy Samples source code Open in Cloud Shell
List Tasks source code Open in Cloud Shell
Update Task source code Open in Cloud Shell

The Google Cloud Datastore Node.js Client API Reference documentation also contains samples.

Supported Node.js Versions

Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js.

Client libraries targeting some end-of-life versions of Node.js are available, and can be installed via npm dist-tags. The dist-tags follow the naming convention legacy-(version).

Legacy Node.js versions are supported as a best effort:

  • Legacy versions will not be tested in continuous integration.
  • Some security patches may not be able to be backported.
  • Dependencies will not be kept up-to-date, and features will not be backported.

Legacy tags available

  • legacy-8: install client libraries from this dist-tag for versions compatible with Node.js 8.

Versioning

This library follows Semantic Versioning.

This library is considered to be General Availability (GA). This means it is stable; the code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against GA libraries are addressed with the highest priority.

More Information: Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See the Contributing Guide.

Please note that this README.md, the samples/README.md, and a variety of configuration files in this repository (including .nycrc and tsconfig.json) are generated from a central template. To edit one of these files, make an edit to its template in this directory.

License

Apache Version 2.0

See LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].