Detecting and applying database schema changes to reports
First Claim
1. A machine-readable storage device having machine readable instructions tangibly stored thereon which when executed by the machine, cause the machine to perform a method to apply database schema changes to a report, the method comprising:
- detecting a change in a database schema;
receiving one or more changes between a first database schema relevant to a first database state and a second database schema relevant to a second database state; and
applying the one or more changes to the report by;
generating a parse tree having nodes and leaves relevant to the first database state, wherein the parse tree comprises syntactic structure of a first statement reflecting the first database state;
modifying the generated parse tree to include the one or more changes between the first database schema and the second database schema by modifying the nodes and the leaves to reflect the second database state; and
traversing the modified parse tree to generate a second statement to modify the report to reflect the second database schema relevant to the second database state.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method to detect database schema changes are described. In various embodiments, a method of the embodiments detects database schema changes via triggers. In various embodiments, the changes are detected by comparing database schemas and determining modifications to database tables and database columns thereof. In various embodiments, the detected changes are applied to a report by generating a parse tree relevant for the modifications to database tables and columns; and traversing the tree to produce a statement to change the report to be relevant for the modifications to database tables and columns.
16 Citations
17 Claims
-
1. A machine-readable storage device having machine readable instructions tangibly stored thereon which when executed by the machine, cause the machine to perform a method to apply database schema changes to a report, the method comprising:
-
detecting a change in a database schema; receiving one or more changes between a first database schema relevant to a first database state and a second database schema relevant to a second database state; and applying the one or more changes to the report by; generating a parse tree having nodes and leaves relevant to the first database state, wherein the parse tree comprises syntactic structure of a first statement reflecting the first database state; modifying the generated parse tree to include the one or more changes between the first database schema and the second database schema by modifying the nodes and the leaves to reflect the second database state; and traversing the modified parse tree to generate a second statement to modify the report to reflect the second database schema relevant to the second database state. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computerized system including:
-
a processor; and a memory in communication with the processor, the memory storing instructions related to; a module operable to receive one or more database states from a database; a module operable to find one or more changes between a first database schema relevant to a first database state and a second database schema relevant to a second database state; and a module operable to apply the one or more changes to a report, wherein the module to apply the one or more changes to the report is operable to; generate a parse tree having nodes and leaves relevant to the first database state, wherein the parse tree comprises syntactic structure of a first statement reflecting the first database state; modify the generated parse tree to include the one or more changes between the first database schema and the second database schema by modifying the nodes and the leaves to reflect the second database state; and traverse the modified parse tree to generate a second statement to modify the report to reflect the second database schema relevant to the second database state. - View Dependent Claims (11, 12)
-
-
13. A computerized method, comprising:
-
identifying one or more database operations relevant to one or more changes in a database schema; identifying one or more targets of the one or more database operations; and applying the one or more changes to the one or more targets in a report, by; generating a parse tree having nodes and leaves relevant to a first database state, wherein the parse tree comprises syntactic structure of a first statement reflecting the first database state; modifying the generated parse tree to include the one or more changes in the database schema by modifying the nodes and the leaves to reflect a second database state; and traversing the modified parse tree to generate a second statement to modify the report to reflect the database schema relevant to the second database state. - View Dependent Claims (14, 15, 16, 17)
-
Specification