VALIDATING SQL QUERIES IN A REPORT
First Claim
1. A computer-implemented method for validating Structured Query Language (SQL) queries in a software programming language program during application development, comprising:
- receiving a selection of a specific SQL query in the program;
automatically invoking a data preview editor interface and rendering the selected query on the interface;
in response to receiving an execute command, parsing the selected query;
extracting a source part and a result part from the selected query;
automatically determining a data type definition and data declaration based on the extracted source part and result part;
generating a dynamic subroutine with the determined data type definition, data declaration, and the selected query;
executing the dynamic subroutine to render a preview of query result in the data preview editor interface; and
validating the selected query based on the preview of the query result.
2 Assignments
0 Petitions
Accused Products
Abstract
Various embodiments of systems and methods for validating Structured Query Language (SQL) queries in a software programming language report during application development are described herein. The method involves receiving a selection of a specific SQL query in the report and automatically invoking a data preview editor interface. The selected query is rendered on the interface for execution. In an aspect, the selected query is parsed and a source part and a result part are extracted. Based on the extracted source part and result part, a data type definition and data declaration are automatically determined for the accessed data. Further, a dynamic subroutine is generated with the determined data type definition, data declaration, and the selected query and executed. A preview of the result of executing the dynamic subroutine is rendered in the data preview editor for validating the query.
22 Citations
18 Claims
-
1. A computer-implemented method for validating Structured Query Language (SQL) queries in a software programming language program during application development, comprising:
-
receiving a selection of a specific SQL query in the program; automatically invoking a data preview editor interface and rendering the selected query on the interface; in response to receiving an execute command, parsing the selected query; extracting a source part and a result part from the selected query; automatically determining a data type definition and data declaration based on the extracted source part and result part; generating a dynamic subroutine with the determined data type definition, data declaration, and the selected query; executing the dynamic subroutine to render a preview of query result in the data preview editor interface; and validating the selected query based on the preview of the query result. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product comprising a non-transitory machine-readable medium storing instructions that, when executed by at least one programmable processor, cause the at least one programmable processor to perform operations comprising:
-
receiving a selection of a specific SQL query in a software programming language program; automatically invoking a data preview editor interface and rendering the selected query on the interface; in response to receiving an execute command, parsing the selected query; extracting a source part and a result part from the selected query; automatically determining a data type definition and data declaration based on the extracted source part and result part; generating a dynamic subroutine with the determined data type definition, data declaration, and the selected query; executing the dynamic subroutine to render a preview of query result in the data preview editor interface; and validating the selected query based on the preview of the query result. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system comprising:
-
at least one programmable processor; and a machine-readable medium storing instructions that, when executed by the at least one programmable processor, cause the at least one programmable processor to perform operations comprising; receiving a selection of a specific SQL query in a software programming language program; automatically invoking a data preview editor interface and rendering the selected query on the interface; in response to receiving an execute command, parsing the selected query; extracting a source part and a result part from the selected query; automatically determining a data type definition and data declaration based on the extracted source part and result part; generating a dynamic subroutine with the determined data type definition, data declaration, and the selected query; executing the dynamic subroutine to render a preview of query result in the data preview editor interface; and validating the selected query based on the preview of the query result. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification