Skip to content

graph-cn/neurodb_arkts

Repository files navigation

NeuroDB ArkTS Driver

GitHub stars GitHub forks

NeuroDB 的 ArkTS 实现


如何使用:

数据库安装

下载地址:https://neurodb.org/zh/download.html

ohpm i @graph-cn/neurodb_arkts

示例

import { NeuroDBDriver } from '@graph-cn/neurodb_arkts';

// Copyright (c) 2024- All neurodb_arkts authors. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.

function test() {
  try {
    let driver: NeuroDBDriver = new NeuroDBDriver({address: '172.20.0.234', port: 8839, family: 1});
    let rs = await this.driver.executeQuery('MATCH (n)-[r]->(m) RETURN n, r, m')
    let rsJson = JSON.stringify(rs)
    console.info(rsJson)
  } catch (e) {
    console.error(e)
  }
}

权限

{
  "requestPermissions": [
    {
      "name": "ohos.permission.INTERNET"
    }
  ],
}

开源协议

项目遵循 Apache License, Version 2.0, January 2004 开源协议。

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published