Welcome to ZTeraDB client and ZQL documention
An In-Depth Guide to ZQL, ZTeraDB Drivers, and APIs for Streamlined Backend Development
- NodeJS
- Python
NodeJS
The ZTeraDB Driver for Node.js is designed to simplify interactions with ZTeraDB. It provides a robust set of classes and tools for seamless integration, enabling developers to efficiently manage database operations and execute queries with ease.
Learn More
Learn More
Features:
- Connect to Multiple Databases: Seamlessly interact with your existing databases through ZTeraDB.
- ZTeraDB Query Language (ZQL): Use a unified query language to query data across different database systems.
- Easy Integration: Easily integrate ZTeraDB into your Node.js application.
- Asynchronous Queries: Support for async/await syntax to handle queries and results asynchronously.
- Error Handling: Comprehensive error handling to help debug and manage database queries.
Installation Command:
npm install zteradb
Usage:
// Import ZTeraDBConnect, ZTeraDBQuery classes
import {ZTeraDBConnect, ZTeraDBQuery} from 'zteradb';
// Initialize ZTeraDBConfig
const ZTERADB_CONFIG = {
...
}
// Establish connection with ZTeraDB server
const connection = ZTeraDBConnect(ZTERADB_CONFIG, "db1.zteradb.com", 7777);
// Prepare select query
const query = ZTeraDBQuery("user").select();
// Run the query
const result = await connection.run(query);
// Iterate the result
for await (const row of result) {
console.log("Query result: ", row);
}
// Close the connection
connection.close();
Compatibility: Node.js 18.20.7 or higher is required.
Python
The ZTeraDB Driver for Python is designed to streamline interactions with ZTeraDB. It offers a comprehensive set of classes and tools for seamless integration, empowering developers to efficiently manage database operations and execute queries with ease.
Learn More
Learn More
Features:
- Connect to Multiple Databases: Seamlessly interact with your existing databases through ZTeraDB.
- ZTeraDB Query Language (ZQL): Use a unified query language to query data across different database systems.
- Easy Integration: Easily integrate ZTeraDB into your Node.js application.
- Asynchronous Queries: Support for async/await syntax to handle queries and results asynchronously.
- Error Handling: Comprehensive error handling to help debug and manage database queries.
Installation Command:
pip install zteradb
Usage:
// Import ZTeraDBConnect, ZTeraDBQuery classes
import {ZTeraDBConnect, ZTeraDBQuery} from 'zteradb';
// Initialize ZTeraDBConfig
const ZTERADB_CONFIG = {
...
}
// Establish connection with ZTeraDB server
const connection = ZTeraDBConnect(ZTERADB_CONFIG, "db1.zteradb.com", 7777);
// Prepare select query
const query = ZTeraDBQuery("user").select();
// Run the query
const result = await connection.run(query);
// Iterate the result
for await (const row of result) {
console.log("Query result: ", row);
}
// Close the connection
connection.close();
Compatibility: Python 3.7 or higher is required.