Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azkadev/database_universe
Database Universe Library for help you store data in any device with high performance
https://github.com/azkadev/database_universe
dart database flutter libmdbx rust sqlite
Last synced: 1 day ago
JSON representation
Database Universe Library for help you store data in any device with high performance
- Host: GitHub
- URL: https://github.com/azkadev/database_universe
- Owner: azkadev
- License: apache-2.0
- Created: 2024-04-27T16:58:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-31T02:12:12.000Z (9 days ago)
- Last Synced: 2025-01-01T00:09:07.296Z (8 days ago)
- Topics: dart, database, flutter, libmdbx, rust, sqlite
- Language: Dart
- Homepage:
- Size: 15.9 MB
- Stars: 97
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Database Universe
**Database Universe** Library for help you save any data in anywhere with high performance speed, easy feature and ready for scala business## Demo
## đī¸ Docs
1. [Documentation](/docs/)
2. [Youtube](https://youtube.com/)
3. [Telegram Support Group](https://t.me/)
4. [Contact Developer](https://github.com/) (check social media or readme profile github)## đī¸ Features
1. [x] đąī¸ **Cross Platform** support (Device, Web)
2. [x] đī¸ **Standarization** Style Code
3. [x] â¨ī¸ **Cli** (Terminal for help you use this library or create project)
4. [x] đĨī¸ **Api** (If you developer bot / userbot you can use this library without interact cli just add library and use đī¸)
5. [ ] đ§Šī¸ **Customizable Extension** (if you want add extension so you can more speed up on development)
6. [ ] â¨ī¸ **Pretty Information** (user friendly for newbie)
## âī¸ Fun Fact**This library 100%** use on every my create project (**App, Server, Bot, Userbot**)
## đī¸ Proggres
- **2024-05-11**### đĨī¸ Install Library
1. **Dart**
```bash
dart pub add database_universe
```## đī¸ Quick Start
Example Quickstart script minimal for insight you or make you use this library because very simple
```dart
// ignore_for_file: non_constant_identifier_names
import 'dart:io';
import 'package:database_universe/database_universe.dart';
import 'package:general_lib/general_lib.dart';
import 'package:path/path.dart' as path;void main(List args) async {
print("start");
/// add database
DatabaseUniverse databaseUniverse = DatabaseUniverse(
// change extension with your own
extension_name: "dbu",
// if set true if open database password wrong force open but database will empty
is_ignore_on_error: true,
);
// init database
databaseUniverse.init(crypto: Crypto(key: "od8wkk8nYbgv2na8ApaL0NMGq3rcpnF5"));
// set database directory
Directory directory_db = () {
if (Dart.isWeb) {
return Directory("");
}
return Directory(path.join(Directory.current.path, "db"));
}();
print("open");
// open disk database
DatabaseUniverseData databaseUniverseData = databaseUniverse.disk_open(file_name: "Slebew", directory: directory_db, valueData: JsonScheme({}));
// change value
print("update");
databaseUniverseData.value["first_name"] = "change name";
// check if key count is not int set to int 0
if (databaseUniverseData.value["count"] is int == false) {
databaseUniverseData.value["count"] = 0;
}
// increament
databaseUniverseData.value["count"] += 1;
// save to disk
databaseUniverse.disk_save(databaseUniverseData: databaseUniverseData, isWithClose: true);
print("saved");
}
```