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 开源协议。