0.25.1-alpha • Published 2 months ago
takachi v0.25.1-alpha
Takachi
Takachi provides two database modules: JsonDatabase
and MySQL
, which allow you to work with JSON and MySQL databases in your Node.js applications.
Getting Started
- Install the module using npm:
npm install takachi
Json Database
import { JsonDatabase } from 'takachi';
const db = new JsonDatabase();
// Set data
db.set('yahya', { age: 19, city: 'Kirkuk' });
// Get data
const yahyaData = db.get('yahya');
console.log('Yahya:', yahyaData);
// More operations are available, like update, add, delete, etc.
MySQL Database
import { MySQL } from 'takachi';
const db = new MySQL();
// Set data
db.set('eylül', { age: 19, city: 'Lille' });
// Get data
const eylülData = await db.get('eylül');
console.log('Eylül:', eylülData);
// More operations are available, like update, add, delete, etc.
API
set(key: string, value: any): //Set data with a key.
get(key: string): any: //Get data by key.
has(key: string): boolean:// Check if a key exists.
delete(key: string): //Delete data by key.
clear(): //Clear all data.
And more methods for data manipulation.
Feel free to modify and expand the modules as needed for your specific use case.
Author
This database module is maintained by Takachi (Yahya).
For questions or support, contact us at our [Discord](https://discord.gg/Z5u9qfKV4U) Server
My [Discord](https://discord.com/users/149284207833645056)
My [GitHub](https://github.com/takachim)
0.25.1-alpha
2 months ago
0.24.7-alpha
3 months ago
0.24.3-alpha
3 months ago
0.24.6-alpha
3 months ago
0.24.2-alpha
3 months ago
2.0.5
4 months ago
0.24.2
3 months ago
2.0.4
5 months ago
0.25.0-alpha
3 months ago
0.24.1
3 months ago
2.0.6
4 months ago
0.24.4-alpha
3 months ago
0.24.5-alpha
3 months ago
2.0.1
5 months ago
2.0.0
5 months ago
1.0.0
5 months ago
0.0.2
7 months ago
0.0.1
7 months ago