Publication:
Implementación de un depurador declarativo para el lenguaje de bases de datos SQL

Loading...
Thumbnail Image
Official URL
Full text at PDC
Publication Date
2009
Advisors (or tutors)
Editors
Journal Title
Journal ISSN
Volume Title
Publisher
Citations
Google Scholar
Research Projects
Organizational Units
Journal Issue
Abstract
Los depuradores han supuesto un gran adelanto para la rama de la informática dedicada al software. Su principal objetivo consiste en depurar o limpiar los errores de otro programa informático, sirviendo esto de gran ayuda al programador. Para ello se han ido desarrollando diferentes programas depurativos dependiendo del lenguaje de programación que se quiera depurar y basados en diferentes algoritmos, intentando así conseguir, de la manera más eficiente, la limpieza de errores. Nuestro proyecto consiste en la construcción de un Depurador Declarativo para el lenguaje declarativo SQL. Realiza la conexión con el SGBD y necesita un archivo introducido por el usuario con sentencias SQL, el cual debe contener la vista errónea principal, que será la que queremos depurar. De ella colgarán las tablas y vistas de las que dependerá. Con estos datos se genera un árbol de cómputo en el que cada nodo representa una tabla o vista de la que depende la principal. Dicho árbol será el que se recorrerá en busca de la tabla/vista errónea. Además, se ha implementado un sistema de localización de errores, que interactuando con el usuario clasifica los nodos como válidos o inválidos y consigue determinar cuál es el nodo crítico, mostrando al usuario dónde está el error. Si el nodo crítico es una vista se realiza una búsqueda fina, mostrando al usuario el fragmento de código erróneo asociado a la vista, ayudando así a encontrar el error de la manera más aproximada posible. [ABSTRACT] Debuggers have become a great advance for the branch of the computer science dedicated to software. Their main objective is to debug or clean errors of other computer programs, being of great help to programmers. There are different kinds of debuggers depending on the programming language chosen to debug and based in different algorithms. The purpose of this tool is to find out in an effective way the error occurring in a program. Our project involves the creation of a declarative debugger for the declarative language SQL. It connects to the SGBD and needs a file given by the user containing the SQL sentences, which must include the wrong main view that we intend do debug. With this information a computation tree will be created. Each node in this tree represents a table or view on which the main one depends. This tree will be used to find the wrong table/view. Furthermore, it has been implemented an error system finder that classifies with the user the nodes as valid or non valid and determines which is the buggy node, showing the user where the error is. If the buggy node is a view, a detailed search is done, showing the user the wrong fragment code associated with the view, helping to find the error in the most exact way possible.
Description
Proyecto de Sistemas Informáticos (Facultad de Informática, Curso 2008-2009)
Unesco subjects
Keywords
Citation