Query constraint encoding with type-based state machine
First Claim
Patent Images
1. A method of query analysis, comprising:
- employing at least one processor configured to execute computer-executable instructions stored in memory to perform the following acts;
analyzing a query specified with a source programming language with respect to constraints of a target query programming language to determine validity of the query at compile time with a type-based state machine, wherein the type-based state machine is generated as a function of the target query programming language by encoding the constraints of the target query programming language in terms of data types as states and methods as transitions between the states.
2 Assignments
0 Petitions
Accused Products
Abstract
A query specified in a source programming language can be analyzed as a function of a type-based state machine that encodes query constraints of a target programming language. The type-based state machine can encode such constraints as types representing states and methods representing transitions between states or types.
51 Citations
21 Claims
-
1. A method of query analysis, comprising:
-
employing at least one processor configured to execute computer-executable instructions stored in memory to perform the following acts; analyzing a query specified with a source programming language with respect to constraints of a target query programming language to determine validity of the query at compile time with a type-based state machine, wherein the type-based state machine is generated as a function of the target query programming language by encoding the constraints of the target query programming language in terms of data types as states and methods as transitions between the states. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A query analysis system, comprising:
-
a processor coupled to a memory the processor configured to execute the following computer-executable components stored in the memory; a first component configured to validate a language-integrated query at compile time against a target query programming language with a type-based state machine, wherein the type-based state machine is generated as a function of a the target query programming language so that constraints of the target query language are encoded in terms of data types as states and methods as transitions between the states. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer-readable storage medium having instructions stored thereon that enable at least one processor to perform a method upon execution of the instructions, the method comprising:
-
generating a type-based state machine as a function of a target query programming language by encoding constraints of the target query programming language in terms of data types as states and methods as transitions between the states; and validating a query specified with a source programming language at compile time with the type-based state machine. - View Dependent Claims (18, 19, 20)
-
-
21. A computer-readable storage medium having instructions stored thereon that enable at least one processor to perform the following act:
analyzing a query specified with a source programming language with respect to constraints of a target query programming language to determine validity of the query at compile time with a type-based state machine, wherein the type-based state machine is generated as a function of the target query programming language by encoding the constraints of the target programming language in terms of data types as states and methods as transitions between the states.
Specification