In addition to the backup/restore APIs, eXtremeDB provides a number of methods to save and load a database snapshot as well as to save the database metadata and dictionary. There are also APIs that allow an application to export and import XML-formatted data, or to save and load a specific database class when only that class's data is needed. The C API also allows exporting the entire database, or specific class objects, in JSON format.
For example, a database might contain some data that is somewhat static (e.g., data about a financial instrument or company) and other data that is high-velocity (e.g., tick data for an instrument). In this case, it could be advantageous to maintain the static data in
persistentclasses and the tick data intransientclasses. (This is an example of a "hybrid" database, i.e., a database containing bothpersistentandtransientclasses.) If desired, thetransientclass data could be saved to persistent storage and then loaded later.For persistent databases, it is also possible for C applications to save and load the contents of the database cache to optimize application restart performance. (Please view the cache export and import functions page for further details.)
These operations are specific to the application language. Please use the links below to view detailed explanations and examples for your development environment:
Implementing database export and import in C.Data export and import using XML in C.Implementing database export and import using the C#, Java, and Python wrappers.Implementing database export and import in C++.Implementing database export and import using xSQL.Implementing database export and import in Java.Implementing database export and import in Python.Implementing database export and import in C#.