opendbs 1.0.0
opendbs: ^1.0.0 copied to clipboard
Official Flutter/Dart client library for OpenDBS, the high-performance database with Node.js/Rust architecture.
OpenDBS Flutter Client #
Official Flutter/Dart client library for OpenDBS.
Installation #
Add this to your pubspec.yaml:
dependencies:
opendbs:
path: ./path/to/opendbs/libraries/flutter # or git url
Usage #
import 'package:opendbs/opendbs.dart';
void main() async {
// Initialize
final client = OpenDBS('http://localhost:4402');
// Login
await client.login('admin', 'admin123');
// Create Database
await client.createDatabase('shop');
// Create Racks
await client.createRack('shop', 'users', type: 'nosql');
// Insert Data
await client.insert('shop', 'users', {'name': 'Alice', 'role': 'admin'});
// Find Data
final users = await client.find('shop', 'users');
print(users);
}