A flexible database integration SDK for Node.js applications that supports multiple database types with a unified configuration interface.
npm install @ayanas/evolve-sdk
import { Evolve } from "@ayanas/evolve-sdk";
const evolve = new Evolve({
database: {
type: "postgres",
host: "localhost",
port: 5432,
username: "user",
password: "password",
database: "evolve_db",
},
});
// Connect to the database
await evolve.connect();
// Get the database status
const status = evolve.getDatabaseStatus();
console.log(status);
// Close the database connection
await evolve.disconnect();
The Evolve
class supports the following database types:
- PostgreSQL
- MySQL
- MariaDB
- Oracle
- MSSQL
- SQLite
The Evolve
class is fully typed and supports TypeScript.
Contributions are welcome! Please feel free to submit a PR or open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.