paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Automated Code Refactoring upon Database-Schema Changes in Web Applications

Web 应用中数据库 Schema 变更后的自动化代码重构
ASE 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE)2021匹配度 2/10 · 该论文属于静态程序分析与代码变换,但应用场景是 Web 应用数据库 schema 变更后的代码重构,与用户核心关注的 AI/LLM/Agentic 程序分析、浮点程序分析或贝叶斯程序分析没有直接交叉;仅在“静态分析工具化/工程落地”层面有微弱关联。引用 4 inbox
Sophie Xie, Junwen Yang, Shan Lu
crossref: 2026-09-12

AI 速览

一句话:提出 EvolutionSaver,用静态分析与代码变换自动完成 Web 应用在数据库 schema 变更后的代码重构与一致性检查。

现代 Web 应用管理着大量用户数据,数据库 schema 频繁变更,开发者必须同步修改应用代码以保持二者一致。已有研究与作者的调查都表明,这类重构既容易出错又十分耗时。本文提出 EvolutionSaver,一个静态代码分析与变换工具,能够自动完成与 schema 相关的代码重构并进行一致性检查:它分析应用代码对数据模型的使用,确定 schema 变更所影响的范围,并自动改写相应代码,同时检查是否有遗漏的不一致之处。该工具被实现为一个 IDE 插件,同时支持 Rails 与 Django 应用;其源码已在 GitHub 公开,插件可从 Visual Studio Marketplace 下载,并配有在线教程与 DOI 存档。

问题
Web 应用在数据库 schema 发生变更后需要人工同步更新应用代码,这一重构任务对开发者而言既易错又耗时。
方法
实现静态代码分析与自动代码变换工具 EvolutionSaver,自动完成 schema 相关代码重构并附带一致性检查,以 IDE 插件形式提供给 Rails 与 Django 开发者。
评估
以 Rails 和 Django 应用为目标实现 IDE 插件,并通过 GitHub 开源、Visual Studio Marketplace 分发及教程演示来展示工具的可用性;摘要未报告定量实验评估结果。
原文摘要(Abstract)

Modern web applications manipulate a large amount of user data and undergo frequent data-schema changes. These changes bring up a unique refactoring task: updating application code to be consistent with data schema. Previous study and our own investigation show that this type of refactoring is error-prone and time-consuming for developers. This paper presents EvolutionSaver, a static code analysis and transformation tool that automates schema-related code refactoring and consistency checking. EvolutionSaver is implemented as an IDE plugin that works for both Rails and Django applications. The source code of EvolutionSaver is available on Github [1] and the plugin can be downloaded from Visual Studio Marketplace [2], with its tutorial available at https://www.youtube.com/watch?v=qBiMkLFIjbE and DOI 10.5281/zenodo.5276127.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6581,
  title = {Automated Code Refactoring upon Database-Schema Changes in Web Applications},
  author = {Sophie Xie and Junwen Yang and Shan Lu},
  booktitle = {ASE},
  year = {2021},
  doi = {10.1109/ase51524.2021.9678934}
}