nebula_dart_gdbc 0.0.4+6 copy "nebula_dart_gdbc: ^0.0.4+6" to clipboard
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

example/lib/example.dart

// 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/?space=test',
    username: 'root', // username is optional
    password: 'nebula', // password is optional
  );

  // 创建语句
  var stmt = await conn.createStatement();
  // 执行语句
  var rs = await stmt.executeQuery(gql: 'SHOW SPACES;');
  // 打印结果
  print(rs);
  // 关闭连接
  conn.close();
}
1
likes
155
pub points
49%
popularity

Publisher

verified publisherdudu.ltd

A database driver for nebula graph based on dart_gdbc, help you to access nebula graph in dart language

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

dart_gdbc, dart_gdbc_pool, fbthrift

More

Packages that depend on nebula_dart_gdbc