hottub.patents
US 12,204,528 B2#3630031 Most CitedActiveUnited States (USPTO)Utility

Converting database language statements between dialects

0Forward Citations (#3630031 Global)
0.0/yrCitation Velocity (#3630031 Global)
0.00Citation PageRank (#3630031 Global)
36Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
8Drawings / Sheets

Abstract

A system receives a source database language statement according to a first dialect, determines a pattern of the source database language statement, the pattern comprising an abstract representation of the source database language statement, and checks whether the determined pattern is present in a cache of translations between patterns according to the first dialect and corresponding patterns according to a second dialect different from the first dialect. In response to the determined pattern being present in the cache of translations, the system converts, using a corresponding translation in the cache of translations, the source database language statement according to the first dialect to a respective target database language statement according to the second dialect.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 36 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A non-transitory machine-readable storage medium storing program code that upon execution causes a system to: receive from a first server over a network, using an application programming interface, a source database language statement according to a first dialect issued by an application; determine a pattern of the source database language statement, the pattern comprising an abstract representation of the source database language, wherein determine the pattern of the source database language statement comprises: parse the source database language statement into a representation of the source database language statement; and normalize the representation of the source database language statement into the pattern of the source database language statement, wherein normalize the representation includes reordering elements of the source database language statement; check whether the determined pattern is present in a cache of translations between patterns according to the first dialect and corresponding patterns according to a second dialect different from the first dialect; in response to the determined pattern being present in the cache of translations, convert, using a corresponding translation in the cache of translations, the source database language statement according to the first dialect to a respective target database language statement according to the second dialect used by a second server, wherein convert the source database language statement further includes: convert, using the corresponding translation in the cache of translations, the determined pattern that is according to the first dialect to a target pattern according to the second dialect; generate the respective target database language statement according to the second dialect based on the target pattern; and de-normalize the target pattern to produce a representation of the respective target database language statement according to the second dialect, wherein de-normalize the target pattern includes reversing the reordering of the elements of the source database language statement; perform the receive, the determine, the check, and the convert during runtime of the application without interrupting the application; and increase efficiency in accessing data and managing data in a database of the second server to migrate from the first server to the second server by pre-populating the cache of translations with entries containing translations between the first dialect and the second dialect prior to the runtime of the application.

  2. Claim 2Depends on #1

    The non-transitory machine-readable storage medium of claim 1, wherein the determined pattern is a first abstract syntax tree (AST), and the target pattern is a second AST, and wherein the cache of translations includes a plurality of entries, each respective entry of the plurality of entries including a respective AST according to the first dialect and a corresponding AST according to the second dialect translated from the respective AST according to the first dialect.

  3. Claim 3Depends on #1

    The non-transitory machine-readable storage medium of claim 1, wherein the normalize comprises one or more of: abstract a constant value to a wildcard indication, or abstract a list of values to a wildcard indication.

  4. Claim 4Depends on #1

    The non-transitory machine-readable storage medium of claim 1, wherein the de-normalize comprises one or more of: de-abstract a wildcard indication to a constant value, or de-abstract a wildcard indication to a list of values.

  5. Claim 5Depends on #1

    The non-transitory machine-readable storage medium of claim 1, wherein a syntax of the source database language statement according to the first dialect differs from a syntax of the respective target database language statement according to the second dialect.

  6. Claim 6Depends on #1

    The non-transitory machine-readable storage medium of claim 1, wherein a capability of the source database language statement according to the first dialect differs from a capability of the respective target database language statement according to the second dialect.

  7. Claim 7Independent Claim

    A system, comprising: a memory to store a cache of translations; an application; and a processor to: receive from a first server over a network, using an application programming interface, a source database language statement according to a first dialect issued by the application; determine an abstract representation of the source database language statement, wherein determine the abstract representation of the source database language statement comprises: parse the source database language statement into a representation of the source database language statement; and normalize the representation of the source database language statement into the abstract representation of the source database language statement, wherein normalize the representation includes reordering elements of the source database language statement; check whether the determined abstract representation is present in the cache of translations between abstract representations according to the first dialect and corresponding abstract representations according to a second dialect different from the first dialect; in response to the determined abstract representation being present in the cache of translations, convert, using a corresponding translation in the cache of translations, the source database language statement according to the first dialect to a respective target database language statement according to the second dialect used by a second server, wherein convert the source database language statement further includes: convert, using the corresponding translation in the cache of translations, the determined abstract representation that is according to the first dialect to a target abstract representation according to the second dialect; generate the respective target database language statement according to the second dialect based on the target abstract representation; and de-normalize the target abstract representation to produce a representation of the respective target database language statement according to the second dialect, wherein de-normalize the target abstraction representation includes reversing the reordering of the elements of the source database language statement; perform the receive, the determine, the check, and the convert during runtime of the application without interrupting the application; and increase efficiency in accessing data and managing data in a database of the second server to migrate from the first server to the second server by pre-populating the cache of translations with entries containing translations between the first dialect and the second dialect prior to the runtime of the application.

  8. Claim 8Depends on #7

    The system of claim 7, wherein the cache of translations comprises translations between abstract syntax trees (ASTs) according to the first dialect and corresponding ASTs according to the second dialect.

  9. Claim 9Depends on #7

    The system of claim 7, wherein the normalize comprises one or more of: abstract a constant value to a wildcard indication, or abstract a list of values to a wildcard indication.

  10. Claim 10Depends on #7

    The system of claim 7, wherein the de-normalize comprises one or more of: de-abstract a wildcard indication to a constant value, or de-abstract a wildcard indication to a list of values.

  11. Claim 11Depends on #7

    The system of claim 7, wherein a syntax of the source database language statement according to the first dialect differs from a syntax of the respective target database language statement according to the second dialect.

  12. Claim 12Depends on #7

    The system of claim 7, wherein a capability of the source database language statement according to the first dialect differs from a capability of the respective target database language statement according to the second dialect.

  13. Claim 13Independent Claim

    A method, comprising: receiving, from a first server over a network, using an application programming interface, in a system comprising a hardware processor, a source database language statement according to a first dialect during runtime of an application that issued the source database language statement; parsing, by the system, the source database language statement into a pattern of the source database language statement, the pattern comprising an abstract representation of the source database language statement; normalizing, by the system, the abstract representation of the source database language statement into the pattern of the source database language statement, wherein normalizing the abstract representation includes reordering elements of the source database language statement; checking, by the system, whether the pattern is present in a cache of translations between patterns according to the first dialect and corresponding patterns according to a second dialect different from the first dialect; in response to the pattern being present in the cache of translations, converting, by the system using a corresponding translation in the cache of translations, the source database language statement according to the first dialect to a respective target database language statement according to the second dialect used by a second server, wherein converting the source database language statement further includes: converting, using the corresponding translation in the cache of translations, the pattern that is according to the first dialect to a target pattern according to the second dialect; generating the respective target database language statement according to the second dialect based on the target pattern; and de-normalizing the target pattern to produce a representation of the respective target database language statement according to the second dialect, wherein de-normalizing the target pattern includes reversing the reordering of the elements of the source database language statement; performing the receiving, parsing, the checking, and the converting during runtime of the application without interrupting the application; and increasing efficiency in accessing data and managing data in a database of the second server to migrate from the first server to the second server by pre-populating the cache of translations with entries containing translations between the first dialect and the second dialect prior to the runtime of the application.

  14. Claim 14Depends on #13

    The method of claim 13, wherein the source database language statement comprises a source Structured Query Language (SQL) statement according to the first dialect, and the respective target database language statement comprises a target SQL statement according to the second dialect.

  15. Claim 15Depends on #13

    The method of claim 13, wherein the pattern of the source database language statement comprises an abstract syntax tree (AST), and the cache of translations comprises translations between ASTs according to the first dialect and corresponding ASTs according to the second dialect.

  16. Claim 16Depends on #13

    The method of claim 13, wherein the cache of translations comprises translations between abstract syntax trees (ASTs) according to the first dialect and corresponding ASTs according to the second dialect.

  17. Claim 17Depends on #13

    The method of claim 13, wherein the normalizing comprises one or more of: abstracting a constant value to a wildcard indication, or abstracting a list of values to a wildcard indication.

  18. Claim 18Depends on #13

    The method of claim 13, wherein the de-normalizing comprises one or more of: de-abstracting a wildcard indication to a constant value, or de-abstracting a wildcard indication to a list of values.

  19. Claim 19Depends on #13

    The method of claim 13, wherein a syntax of the source database language statement according to the first dialect differs from a syntax of the respective target database language statement according to the second dialect.

  20. Claim 20Depends on #13

    The method of claim 13, wherein a capability of the source database language statement according to the first dialect differs from a capability of the respective target database language statement according to the second dialect.

Technical Overview & Description

BACKGROUND A relational database stores data in relational tables. A relational table organizes data into rows and columns, where a row refers to a record or tuple that stores data, and each record or tuple includes attributes that correspond to the columns of the table. Different relational databases can be provided by respective different database management servers. BRIEF DESCRIPTION OF THE DRAWINGS Some implementations of the present disclosure are described with respect to the following figures. FIG. 1 is a block diagram of an arrangement that includes a migration engine for migrating between different database servers, according to some examples. FIG. 2 is a block diagram of an arrangement for migrating between different database servers, according to further examples. FIGS. 3 - 6 illustrate example abstract syntax trees (ASTs) used as part of the migrating according to some examples. FIG. 7 is a block diagram of a storage medium storing machine-readable instructions according to some examples. FIG. 8 is a block diagram of a system according to some examples. FIG. 9 is a flow diagram of a process according to further examples. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements. The figures are not necessarily to scale, and the size of some parts may be exaggerated to more clearly illustrate the example shown. Moreover, the drawings provide examples and/or implementations consistent with the description; however, the description is not limited to the examples and/or implementations provided in the drawings. DETAILED DESCRIPTION In the present disclosure, use of the term “ a, ” “ an ” , or “ the ” is intended to include the plural forms as well, unless the context clearly indicates otherwise. Also, the term “ includes,

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (36)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Author Unknown; Refactoring to Reactive
  • —
  • Anatomy of a JDBC Migration; www.infoq.com/articles/Refactoring-Reactive-JDBC; Feb. 15, 2018; 25 pages.
  • ISA; International Search Report / Written Opinion; PCT/CN2018/091502; Mailed Mar. 13, 2018; 9 pages.
  • Meta Integration Technology, In.; Meta Integration
  • ®
  • Model Bridge (MIMB)
  • “
  • Metadata Integration
  • ”