target/binThe
/target/bindirectory under your eXtremeDB installation root contains Java archivesextremedb.jarandextremedb_jdbc.jar, apythonsubdirectory, and a number of binary libraries described below. The Java archive files are required only for Java applications and JDBC applications. Thepythonsubdirectory contains shared object libraries andexdb.py, which are required for Python applications.Python Subdirectory
The
/target/bin/pythondirectory contains the eXtremeDB Python implementation source fileexdb.pyand the following Python shared object libraries:eXtremeDB.soThe release mode version of the eXtremeDB Python implementation.eXtremeDB_debug.soThe debug mode version of the eXtremeDB Python implementation.eXtremeDB_load.soNative C Libraries
The native C libraries (upon which the C++, Java, and Python wrappers depend) are described in the sections below. Each library is provided in two forms:
- Debug — used during development to aid in finding application-level errors; contains several levels of checks for possible erroneous argument values and other error conditions that should be caught and resolved before application deployment. These are easily recognized by the
_debugsuffix in the filename.- Release — used when the development cycle is completed or when performance comparisons are desired; because most of the checks built into the debug version are removed, this version of the libraries performs significantly faster.
(Only release mode filenames are shown in the sections below.)
Java and Python applications load shared object versions of the necessary libraries at runtime, but normally C and C++ applications will statically link the appropriate libraries.
Required Libraries
The following tables list the essential libraries that implement the eXtremeDB functionality. Platform-dependent functionality is implemented in the set of libraries called the System Access Layer (SAL). At least one library from each of the categories below must be linked to C and C++ applications together with the supporting SAL libraries.
The SAL libraries in the following table implement the indicated functionality for all supported platforms:
libmcosalatomic.aAtomic operations.libmcosallatches.aLatches implementations.libmcosaltimer.aLow-resolution and high-resolution timer implementations.libmconet.aSystem network layer.libmcosalmem.aSystem memory management.libmcosalsmp.aSystem mutex, semaphores, threading, and other multi-thread/process related code.libmcosaldload.aSystem dynamic loader.libmcosalhollow.aStub functions for in-memory database single-threaded applications only.Core Runtime
Of the following libraries,
libmcolib.ais required for basic eXtremeDB functions, and eitherlibmcovtmem.aorlibmcovtdsk.ais required depending on whether a persistent database is used:libmcolib.aMain database functions.libmcovtmem.aVirtual Table management for in-memory databases.libmcovtdsk.aVirtual Table management for persistent and hybrid databases.Memory Device Manager
Depending on the type of database memory device being used, one of the following libraries is required:
libmcomconv.aConventional memory device.libmcomalloc.aConventional memory device with internal memory allocation by the eXtremeDB runtime.libmcomipc.aShared memory device using Unix-Linux IPC.libmcompsx.aShared memory device using Unix-Linux POSIX.Transaction Manager
Depending on the choice of Transaction Manager, one of the following libraries is required:
libmcotmursiw.alibmcotmvcc.alibmcotexcl.aEXCLusive transaction manager.Concurrency Management
One of the following libraries is required to manage synchronization of database access from multiple threads or processes.
(Note that for minimalistic single-threaded in-memory database applications, a “hollow” synchronization stub is provided in library
libmcosalhollow.a. It has no synchronization code, so it is the fastest implementation—but it is valid for single-threaded applications only. If the application links withlibmcosalhollow.a, then no synchronization library is necessary.)libmcoslnxp.aPOSIX synchronization implementation – faster than SysV-based but applicable only for conventional memory applications. (Note that this library is good for multi-process applications if pthread supports that and the operating system is not macOS.)libmcoslnxs5.aPure SysV synchronization implementation – slowest but good for all applications.libmcoslnx.aSysV with atomic operations – good for all applications in shared or conventional memory. (Note that atomic operations avoid unnecessary kernel calls and can provide better performance.)Persistent Database Support
All C and C++ applications using the Persistent Storage APIs must link with
libmcovtdskinstead oflibmcovtmemfor "virtual table" control. In addition, one of the following libraries is required depending on the file system used:libmcofuni.aUnix-Linux file system support.libmcofu98.aUnix98 file system support.libmcofu98zip.aLZ Compression and database + mmap.libmcofu98ziplog.aLZ Compression and sequential log.Utility Functions
Miscellaneous functionality used in eXtremeDB internals is provided in the following libraries. Depending on whether the standard C runtime libraries are used, one of these is required:
libmcouwrt.aUtilities using the C runtime.libmcounrt.aUtilities without the C runtime.Optional Libraries
The following sections describe optional libraries that are required only for the specified eXtremeDB features:
Dynamic Module Loader [Optional]
The following library provides the capability to dynamically load parts of the eXtremeDB core on request:
libmcoloader.aProvides themco_core_load()API to dynamically load parts of the eXtremeDB core on request.Sequence Data Type Support [Optional]
These libraries provide basic
sequencedata type operations such as reading and insertingsequencedata. All applications that use thesequencedata type must link with one of the following libraries:libmcoseq.aSequencedata type API support.libmcoseqrle.aSequencedata type with RLE compression API support.Analytics Function Library [Optional]
If, in addition to basic sequence operations, mathematics and statistical functions that operate on sequences are required, applications must link with one of the following libraries:
libmcoseqmath.aMathematical and statistical functions operating onsequences.libmcoseqrlemath.aMathematical and statistical functions operating onsequenceswith RLE compression.Active Replication Fabric Support [Optional]
eXtremeDB Active Replication Fabric packages provide the following libraries. All applications that use ARF (IoT) APIs must link with both:
libmcoiotcomm.aIoT communication library.libmcoiotrepl.aIoT replication.Transaction Logging APIs [Optional]
The eXtremeDB Transaction Logging APIs are implemented in the following library. All applications that use the Transaction Logging API must link with:
libmcolog.aTransaction Logging API.In addition, all applications that use the Transaction Logging APIs must link with a File System Wrapper library (see the Persistent Database Support section above).
Backup [Optional]
The following library is provided for applications using the incremental backup feature to backup and restore databases on persistent media:
libmcobackup.aIncremental backup and restore for in-memory and persistent databases.Serialization [Optional]
The following library is provided for applications using the
save/loadfeatures to store and retrieve database or class snapshots on persistent media. (Note that this functionality does not require file system wrappers. Thesave/loadfeatures use an abstract stream (implemented by the application) to transfer data to the operating system.)libmcoseri.aSerialization (save and load) for all-in-memory databases.Uniform Data Access (UDA) [Optional]
For applications that use the Uniform Data Access functions, the following library is required:
libmcouda.aRequired if UDA APIs are used.Debug Error and Tracing Diagnostics [Optional]
The eXtremeDB tracing framework allows applications to output trace and debugging information to a log file. If desired, the following library can be included:
libmcotrace.aRequired if the tracing framework is used.Database Calculator [Optional]
The following library is required for applications that use the database calculator:
libmcodbcalc.aDatabase Calculator implementation.Cryptography [Optional]
The Database Encryption feature requires one of the following libraries:
libmcocryptaes.aAES encryption algorithm.libmcocryptstub.aEmpty encryption APIs for custom implementation.