首页> 外文学位 >Modeling and Analysis of SQL Queries in PHP Systems
【24h】

Modeling and Analysis of SQL Queries in PHP Systems

机译:PHP系统中SQL查询的建模和分析

获取原文
获取原文并翻译 | 示例

摘要

PHP is a common language used for creating dynamic websites. These websites often include the use of databases to store data, with embedded SQL queries constructed within the PHP code and executed through the use of database access libraries. One of these libraries is the original MySQL library that, despite not being supported in current versions of PHP, is still widely used in existing PHP code. As a first step towards developing program comprehension and transformation tools for PHP systems that use this library, this research presents a query modeling tool that models embedded SQL queries in PHP systems and an empirical study conducted through analysis of these models. A main focus of this study was to establish common patterns developers use to construct SQL queries and to extract information about their occurrences in actual PHP systems. Using these patterns, the parts of queries that are generally static, and the parts that are often computed at runtime were extracted. For dynamically computed query parts, we also extracted data about which PHP language features are used to construct them. Finally, information about which clauses most often differ based on control flow was extracted as well as counts for how often each SQL query type and SQL clause is used in practice. We believe this information is useful for future work on building program understanding and transformation tools to renovate PHP code using database libraries.
机译:PHP是用于创建动态网站的通用语言。这些网站通常包括使用数据库存储数据,以及在PHP代码中构造并通过使用数据库访问库执行的嵌入式SQL查询。这些库之一是原始的MySQL库,尽管当前的PHP版本不支持该库,但仍在现有的PHP代码中广泛使用。作为开发使用此库的PHP系统的程序理解和转换工具的第一步,本研究提出了一种查询建模工具,该工具可以对PHP系统中的嵌入式SQL查询进行建模,并通过对这些模型的分析进行实证研究。这项研究的主要重点是建立开发人员用于构造SQL查询并提取有关它们在实际PHP系统中发生情况的信息的通用模式。使用这些模式,提取了通常是静态的查询部分以及经常在运行时计算的部分。对于动态计算的查询部分,我们还提取了有关使用哪些PHP语言功能来构造它们的数据。最后,提取有关哪些子句最常基于控制流而变化的信息,以及每个SQL查询类型和SQL子句在实践中使用频率的计数。我们认为,这些信息对于将来构建程序理解和转换工具以使用数据库库更新PHP代码很有用。

著录项

  • 作者

    Anderson, David.;

  • 作者单位

    East Carolina University.;

  • 授予单位 East Carolina University.;
  • 学科 Computer science.
  • 学位 M.S.
  • 年度 2018
  • 页码 68 p.
  • 总页数 68
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号