Skip to main content

Overview

Sorionlib provides database helpers for MongoDB and MariaDB with simplified connection management and CRUD operations.

Supported databases

MongoDB

Connection

CRUD operations

Create:
Read:
Update:
Delete:

Connection example

MariaDB

Connection

CRUD operations

Create:
Read:
Update:
Delete:

Connection example

Best practices

Use connection pooling

Handle connection errors

Use transactions

Close connections gracefully