@ayanas/evolve

1.0.0 • Public • Published

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-sdk

Usage

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @ayanas/evolve

Weekly Downloads

17

Version

1.0.0

License

MIT

Unpacked Size

8.25 kB

Total Files

5

Last publish

Collaborators

  • ayanas