neo4j-migration-skill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Neo4j migration skill

Neo4j迁移Skill

This skill uses online guides to upgrade old Neo4j codebases. It handles all official Neo4j drivers.
本Skill利用在线指南升级旧的Neo4j代码库,支持所有官方Neo4j驱动。

When to use

适用场景

Use this skill when:
  • a user asks to upgrade a Neo4j driver in languages: .NET, Go, Java, Javascript, Python
在以下情况使用本Skill:
  • 用户要求升级以下语言的Neo4j驱动:.NET、Go、Java、Javascript、Python

Instructions

使用说明

  1. At the beginning, ALWAYS ask a user what Neo4j version is going to be used after the upgrade. Note, the Neo4j database's version is not upgraded as part of this skill, we just need that information a) If the user says that most recent, fetch the version from the supported version list along with the most recent driver version b) Otherwise, analyze the supported versions list and choose the most recent driver version for given Neo4j version
  2. Analyze the codebase in order to determine what additional documentation to include, focus only on dependencies' files (e.g.
    package.json
    ,
    requirements.txt
    ,
    pom.xml
    etc.). If the codebase uses Neo4j driver for:
    • .NET then include .NET migration guide
    • Go then include Go migration guide
    • Java then include Java migration guide
    • Javascript/Node.JS then include Javascript migration guide
    • Python then include Python migration guide
Important: when you plan the upgrade, always include replacement of deprecated functions in the plan
  1. 开头务必询问用户升级后将要使用的Neo4j版本。注意:本Skill的操作不包含升级Neo4j数据库版本,我们仅需要该信息 a) 如果用户表示要使用最新版本,请从支持版本列表获取对应版本以及最新的驱动版本 b) 否则,请分析支持版本列表,为指定的Neo4j版本选择最新的驱动版本
  2. 分析代码库以确定需要包含哪些额外文档,仅需关注依赖文件(例如
    package.json
    requirements.txt
    pom.xml
    等)。如果代码库使用的Neo4j驱动对应:
    • .NET 请包含.NET迁移指南
    • Go 请包含Go迁移指南
    • Java 请包含Java迁移指南
    • Javascript/Node.JS 请包含Javascript迁移指南
    • Python 请包含Python迁移指南
重要提示:制定升级计划时,务必将废弃函数的替换逻辑纳入计划中。