@ayanas/evolve
v1.0.0
Published
SDK for interacting with the Evolve system
Downloads
2
Readme
Evolve SDK
A flexible database integration SDK for Node.js applications that supports multiple database types with a unified configuration interface.
Installation
npm install @ayanas/evolve-sdkUsage
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();Configuration
The Evolve class supports the following database types:
- PostgreSQL
- MySQL
- MariaDB
- Oracle
- MSSQL
- SQLite
TypeScript Support
The Evolve class is fully typed and supports TypeScript.
Contributing
Contributions are welcome! Please feel free to submit a PR or open an issue.
License
This project is licensed under the MIT License. See the LICENSE file for details.
