MagnumDB Engine
Docs/Server Mode

Server Mode & PostgreSQL Wire Protocol

MagnumDB can run as a standalone network server daemon accepting PostgreSQL wire protocol connections over TCP port 5432.

Protocol Compatibility Qualification:

MagnumDB exposes PostgreSQL wire protocol functionality for psql CLI convenience. This does NOT make MagnumDB a full drop-in PostgreSQL replacement.

1. Building & Launching Server

Terminal 1
bash
# Clone repository
$ git clone https://github.com/sohamdev77/MagnumDB.git
$ cd MagnumDB

# Build release binary
$ cargo build --release

# Run standalone server executable
$ cargo run --bin magnumdb --release

2. Connecting via psql CLI

Terminal 2
sql
# Connect using standard PostgreSQL CLI
$ psql -h 127.0.0.1 -p 5432 -U postgres -d postgres

postgres=# CREATE TABLE products (id INT, name TEXT, price FLOAT);
CREATE TABLE
postgres=# INSERT INTO products VALUES (1, 'Keyboard', 79.99);
INSERT 0 1
postgres=# SELECT * FROM products;
 id |   name   | price 
----+----------+-------
  1 | Keyboard | 79.99
(1 row)