Mach Database NoSQL examples
Every example here is an ordinary application written for the original database with its official, latest stable driver. Moving it to MachNoSQL changes only the connection address, which every example reads from an environment variable. No line of application code changes.
| Protocol | Directory | Languages |
|---|---|---|
| MongoDB | mongodb/ | Python (PyMongo, Motor), Node.js (driver, Mongoose), Go, Java, C#, PHP, Ruby, Rust |
| Redis / Valkey | redis/ | Python, Node.js (ioredis, node-redis), Go, Java (Jedis, Lettuce), C#, PHP (Predis, phpredis), Ruby, Rust |
| Cassandra | cassandra/ | Python, Java, Go, C#, Node.js |
| DynamoDB | dynamodb/ | Python (boto3), Node.js (SDK v3), Go (SDK v2), Java (SDK 2.x) |
| Elasticsearch / OpenSearch | elasticsearch/ | Python, Node.js, Go, Java, C# |
| Neo4j | neo4j/ | Python, Node.js, Go, Java, C# |
| original tools | TOOLS.md | mongosh, mongodump, redis-cli, cqlsh, AWS CLI, Kibana, cypher-shell |
Each directory has a README with the connection string before and after.
- Examples are not run on developer machines. They run in the e2e campaign against the original and against MachNoSQL on the test server, and their output is compared (EXM-0008).
- Driver versions are the latest stable releases at the time of writing (2026-10-30) and are bumped monthly (EXM-0009).
- Secrets in the examples (
secret) are placeholders; real deployments pass credentials through the environment.