nebula_dart_gdbc 0.0.4+6 nebula_dart_gdbc: ^0.0.4+6 copied to clipboard
A database driver for nebula graph based on dart_gdbc, help you to access nebula graph in dart language
nebula_dart_gdbc #
这是一个基于 dart_gdbc 规范下,nebula-graph 图数据库的 dart 客户端实现。(开发中)
Usage #
dart pub add nebula_dart_gdbc
// use driver
import 'package:nebula_dart_gdbc/nebula_dart_gdbc.dart';
void main(List<String> args) async {
DriverManager.registerDriver(NgDriver());
var conn = await DriverManager.getConnection(
'gdbc.nebula://127.0.0.1:9669/?username=root&password=nebula&space=test&timeout=1000',
);
var stmt = await conn.createStatement();
var rs = await stmt.executeQuery('SHOW SPACES;');
print(rs);
await conn.close();
}
Licence #
nebula_dart_gdbc 遵循 Apache License, Version 2.0 开源协议。