1.0.3 • Published 7 months ago
db-unify v1.0.3
DB-Unity
Unified database operations made easy. Manage, control, and perform unified actions on multiple databases with a single interface.
Features
- Unified Interface: Seamlessly interact with different databases like MySQL, PostgreSQL, SQLite, and MSSQL with one interface.
User Management: Create, update, and list users across databases.
Permissions: Grant and revoke user permissions on specific tables or entire databases.
Safety: Parameterized queries to avoid SQL injection vulnerabilities.
Installation
npm install db-unity
Usage
Initialize
const DBUnity = require("db-unity");
const db = new DBUnity("mysql", connectionOptions);
Create a User
db.createUser("newUser", "securePassword");
Grant Permissions
db.grantPrivileges("newUser", "read", "myDatabase", "*");
List Users
const users = db.listUsers();
console.log(users);
... Add more usage examples as needed
Contributing
- Fork the repository.
- Create your feature branch (
git checkout -b feature/my-new-feature
). - Commit your changes (
git commit -am 'Add my new feature'
). - Push to the branch (
git push origin feature/my-new-feature
). - Open a new pull request.
License
This project is licensed under the MIT License - see the LICENSE
file for details.
Remember to modify, add, or remove sections to better align with the specifics of db-unity
. Including screenshots, detailed API documentation, and other relevant sections can make your readme even more helpful for users.