【发布时间】:2013-09-30 19:48:35
【问题描述】:
我尝试使用gremlin polygot 查询将表从oracle 导出到neo4j。但没有成功。我为此使用TinkerGraph。
以下代码在 Eclipse IDE 中运行良好。但无法在 gremlin-groovy-2.4.0 REPL 中运行。
import oracle.jdbc.pool.OracleDataSource
import groovy.sql.*
OracleDataSource ds = new OracleDataSource()
ds.user = 'scott'
ds.password = 'tiger'
ds.driverType = 'thin'
ds.serverName = 'localhost'
ds.portNumber = 1521
ds.databaseName = 'test'
Sql sql = new Sql(ds)
sql.eachRow('select * from survey4') { row -> println row.name }
sql.close()
【问题讨论】:
-
我看到你在下面回复了自己....现在这对你有用吗?
-
实际上只在连接oracle时获得了成功。但是节点和顶点的创建仍在等待中。
标签: eclipse oracle neo4j gremlin