Skip to main content

velxodb 1.0.0 copy "velxodb: ^1.0.0" to clipboard
velxodb: ^1.0.0 copied to clipboard

Embedded pure-Dart document database with zero-copy documents, a log-structured storage engine and pluggable object-store backends.

example/velxodb_example.dart

import 'package:velxodb/serde.dart';

void main() {
  final payload =
      (DocBuilder(schemaId: 1, schemaVersion: 1)
            ..putString(1, 'conv-42')
            ..putInt(2, 7)
            ..putInt(3, 1750000000000)
            ..putString(4, '在吗?今天下午三点开会'))
          .finish();

  final view = DocView.parse(payload.asUint8List());
  print('encoded ${payload.length} bytes, ${view.fieldCount} fields');
  print('text: ${view.getString(4)}');
  // Zero-copy: no String is created for a projection you never materialise.
  print('text bytes: ${view.getBytes(4)!.length}');
}
0
likes
160
points
59
downloads

Documentation

API reference

Publisher

verified publisherunk404.com

Weekly Downloads

Embedded pure-Dart document database with zero-copy documents, a log-structured storage engine and pluggable object-store backends.

Repository (GitHub)
View/report issues

Topics

#database #embedded #storage #nosql #document

License

MIT (license)

Dependencies

blit

More

Packages that depend on velxodb