ormdb-server 0.1.0

Standalone ORMDB database server
Documentation

ormdb-server

Crates.io Documentation License: MIT

Standalone database server for ORMDB.

Overview

ormdb-server is the main entry point for running ORMDB as a standalone database service. It handles:

  • Client connections via NNG (nanomsg-next-gen)
  • Request routing and protocol handling
  • Mutation processing with cascades
  • Change data capture and pub/sub
  • Replication streams

Installation

# Install from crates.io
cargo install ormdb-server

# Or build from source
git clone https://github.com/Skelf-Research/ormdb.git
cd ormdb
cargo build --release -p ormdb-server

Usage

# Start the server
ormdb-server --data-dir ./data --port 5432

# With logging
RUST_LOG=info ormdb-server --data-dir ./data

# Show all options
ormdb-server --help

Configuration

Flag Description Default
--data-dir Data directory path ./data
--port Server port 5432
--host Bind address 127.0.0.1

Connecting

Use the ORMDB client libraries to connect:

Rust

use ormdb_client::Client;

let client = Client::connect("ormdb://localhost:5432").await?;

TypeScript

import { OrmdbClient } from '@ormdb/client';

const client = new OrmdbClient({ url: 'ormdb://localhost:5432' });

Python

from ormdb import Client

client = Client("ormdb://localhost:5432")

License

MIT License - see LICENSE for details.

Part of the ORMDB project.