Skip to content

A Class for easy accessing YottaDB persistent data out of C++

Notifications You must be signed in to change notification settings

informatik-aalen/CPP-Access-for-YottaDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YottaDB-Database-Connector for C++

logo This class allows access to YottaDB-trees (persistent and in-memory) like accessing a C++-tree (multidimensional array).

_global[1][2]["foo"] = "bar";
cout << _global[1][2]["foo"]

Prerequisites

YottaDB hierarchical NoSQL-database https://yottadb.com/

Best Practise

If using named objects name the object like the global (but with a preceding underscore instead of caret). Mapping an object to the global name is done via the constructor.

c_ydb_global _g("^g"), _counter("^counter");

Error Processing

  • set the external declared variable ydb_global_throw_error to a value not zero so the dangerous methods will throw errors.
  • Otherwise error-processing is done by the method
int last_error();

which can be called after each method-call.

License

This project is licensed under the terms of the MIT license.

About

A Class for easy accessing YottaDB persistent data out of C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published