Neo4j 5.x 中存储过程的变更

本页面包含 Neo4j 5.x 中引入、弃用和移除的过程列表。

引入的过程

在 Neo4j 5.x 中,引入了以下过程。有关详细信息,请前往 Operations manual → Procedures

查看 Neo4j 5.x 中引入的过程。
名称 社区版 企业版 注释

db.cdc.current()

于 5.17 版本引入

db.cdc.earliest()

于 5.17 版本引入

db.cdc.query()

于 5.17 版本引入

dbms.cluster.moveToNextDiscoveryVersion()

5.26 版本引入 仅限管理员

dbms.cluster.deallocateDatabaseFromServer()

于 5.23 版本引入

dbms.cluster.deallocateDatabaseFromServers()

于 5.23 版本引入

dbms.cluster.deallocateNumberOfDatabases()

于 5.23 版本引入

dbms.cluster.reallocateDatabase()

于 5.23 版本引入

dbms.cluster.reallocateNumberOfDatabases()

于 5.23 版本引入

dbms.cluster.recreateDatabase()

于 5.24 版本引入

dbms.cluster.secondaryReplicationDisable()

5.6 版本引入 仅限管理员

dbms.cluster.showParallelDiscoveryState()

5.22 版本引入 仅限管理员

dbms.cluster.statusCheck()

5.24 版本引入 仅限管理员

dbms.cluster.switchDiscoveryServiceVersion()

5.22 版本引入 仅限管理员

db.create.setNodeVectorProperty

5.13 版本引入 Beta 版

db.create.setRelationshipVectorProperty()

5.18 版本引入 Beta 版

db.index.vector.queryNodes()

于 5.18 版本引入

db.index.vector.queryRelationships()

于 5.18 版本引入

genai.vector.encodeBatch()

于 5.17 版本引入

genai.vector.listEncodingProviders()

于 5.19 版本引入

弃用的过程

有关弃用过程的更多详细信息,请参考 Operations manual → Procedures

查看 Neo4j 5.x 中弃用的过程。
名称 社区版 企业版 注释

cdc.current()

5.13 版本引入 Beta 版 5.17 版本弃用 替换为: db.cdc.current()

cdc.earliest()

5.13 版本引入 Beta 版 5.17 版本弃用 替换为: db.cdc.earliest()

cdc.query()

5.13 版本引入 Beta 版 仅限管理员 5.17 版本弃用 替换为: db.cdc.query()

db.create.setVectorProperty()

5.11 版本引入 Beta 版 5.13 版本弃用 替换为: db.create.setNodeVectorProperty()

dbms.cluster.readReplicaToggle()

仅限管理员 5.6 版本弃用
替换为: dbms.cluster.secondaryReplicationDisable()

dbms.cluster.routing.getRoutingTable()

5.21 版本弃用.
替换为: dbms.routing.getRoutingTable()

dbms.cluster.uncordonServer()

5.23 版本弃用.
在 Neo4j 5.23 之前,该过程只能使用 Admin 权限运行。
替换为 ENABLE SERVER

dbms.setDatabaseAllocator()

仅限管理员 5.23 版本弃用

dbms.upgrade()

仅限管理员 5.9 版本弃用

dbms.upgradeStatus()

仅限管理员 5.9 版本弃用

db.index.vector.createNodeIndex()

5.11 版本引入 5.26 版本弃用

移除的过程

查看 Neo4j 4.4 中已移除并由 Cypher 命令替换的过程
名称 社区版 企业版 注释

db.createNodeKey()

已移除 替换为 CREATE CONSTRAINT ... IS NODE KEY 命令的 OPTIONS

db.constraints()

已移除 替换为 SHOW CONSTRAINTS

db.createUniquePropertyConstraint()

已移除 替换为 CREATE CONSTRAINT ... IS UNIQUE 命令的 OPTIONS

db.createIndex()

已移除 替换为 CREATE INDEX 命令的 OPTIONS

db.indexes()

已移除 替换为 SHOW INDEXES

db.indexDetails()

已移除 替换为 SHOW INDEXES YIELD *

db.schemaStatements()

已移除 替换为 SHOW INDEXES YIELD *SHOW CONSTRAINTS YIELD *

dbms.procedures()

已移除 替换为 SHOW PROCEDURES

dbms.functions()

已移除 替换为 SHOW FUNCTIONS

dbms.killQueries()

已移除 替换为 TERMINATE TRANSACTIONS

dbms.killQuery()

已移除 替换为 TERMINATE TRANSACTIONS

dbms.killTransaction()

已移除 替换为 TERMINATE TRANSACTIONS

dbms.killTransactions()

已移除 替换为 TERMINATE TRANSACTIONS

dbms.listQueries()

已移除 替换为 SHOW TRANSACTIONS

dbms.listTransactions()

已移除 替换为 SHOW TRANSACTIONS

dbms.security.createUser()

已移除 替换为 CREATE USER

dbms.security.deleteUser()

已移除 替换为 DROP USER

dbms.security.suspendUser()

已移除 替换为 ALTER USER

dbms.security.activateUser()

已移除 替换为 ALTER USER

dbms.security.changeUserPassword()

已移除 替换为 ALTER USER

dbms.security.changePassword()

已移除 替换为 ALTER CURRENT USER SET PASSWORD

dbms.security.createRole()

已移除 替换为 CREATE ROLE

dbms.security.deleteRole()

已移除 替换为 DROP ROLE

dbms.security.addRoleToUser()

已移除 替换为 GRANT ROLE

dbms.security.removeRoleFromUser()

已移除 替换为 REVOKE ROLE

dbms.security.listUsers()

已移除 替换为 SHOW USERS

dbms.security.listRolesForUser()

已移除 替换为 SHOW USERS

dbms.security.listRoles()

已移除 替换为 SHOW ROLES

dbms.security.listUsersForRole()

已移除 替换为 SHOW ROLES WITH USERS

db.index.fulltext.createNodeIndex()

已移除 替换为 CREATE FULLTEXT INDEX …​

db.index.fulltext.createRelationshipIndex()

已移除 替换为 CREATE FULLTEXT INDEX …​

db.index.fulltext.drop()

已移除 替换为 DROP INDEX …​

© . This site is unofficial and not affiliated with Neo4j, Inc.