diff --git a/cran-comments.md b/cran-comments.md index 1189d26..477d708 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,4 +1,4 @@ -There are 1 changes and 2 bugfixes (see NEWS.md). +There are 2 changes and 1 bugfix (see NEWS.md). --- diff --git a/docs/404.html b/docs/404.html index fa4f304..0e4f30e 100644 --- a/docs/404.html +++ b/docs/404.html @@ -18,7 +18,7 @@ - +
@@ -44,7 +44,7 @@
- +
@@ -106,16 +106,16 @@

Page not found (404)

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/docs/articles/UsingSqlRender.html b/docs/articles/UsingSqlRender.html index 774ead6..81dee8c 100644 --- a/docs/articles/UsingSqlRender.html +++ b/docs/articles/UsingSqlRender.html @@ -12,14 +12,13 @@ - - +
@@ -45,7 +44,7 @@
- +
@@ -88,7 +87,7 @@

Using SqlRender

Martijn J. Schuemie

-

2024-08-09

+

2024-09-30

Source: vignettes/UsingSqlRender.Rmd @@ -218,7 +217,8 @@

Translation to other SQL dialects, Impala, Netezza, Google BigQuery, Amazon Redshift, Snowflake, Azure Synapse, -Apache Spark and SQLite.

+Apache Spark, SQLite, and +InterSystems IRIS.

A third limitation is that only a limited set of translation rules have currently been implemented, although adding them to the list should not be hard.

@@ -247,6 +247,7 @@

Translation to other SQL dialects“sqlite”
  • “sqlite extended”
  • “sql server”
  • +
  • “iris”
  • Functions and structures supported by translate @@ -480,7 +481,7 @@

    Temp tables
     sql <- "SELECT * FROM #children;"
     translate(sql, targetDialect = "oracle", tempEmulationSchema = "temp_schema")

    -
    ## [1] "SELECT * FROM temp_schema.lbm26ecpchildren ;"
    +
    ## [1] "SELECT * FROM temp_schema.p683u3w8children ;"
     ## attr(,"sqlDialect")
     ## [1] "oracle"

    Note that the user will need to have write privileges on @@ -767,9 +768,7 @@

    Spark SQL - -

    +
    @@ -782,16 +781,16 @@

    Spark SQL

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/articles/index.html b/docs/articles/index.html index 5152078..def7dc0 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -78,15 +78,15 @@

    All vignettes

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/authors.html b/docs/authors.html index d63f657..38a29ae 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -63,13 +63,13 @@

    Authors and Citation

    - +
    • -

      Martijn Schuemie. Author, maintainer. +

      Martijn Schuemie. Author, maintainer.

    • -

      Marc Suchard. Author. +

      Marc Suchard. Author.

    @@ -83,13 +83,13 @@

    Citation

    Schuemie M, Suchard M (2024). SqlRender: Rendering Parameterized SQL and Translation to Dialects. -R package version 1.18.1, https://github.com/OHDSI/SqlRender, https://ohdsi.github.io/SqlRender/. +R package version 1.19.0, https://github.com/OHDSI/SqlRender, https://ohdsi.github.io/SqlRender/.

    @Manual{,
       title = {SqlRender: Rendering Parameterized SQL and Translation to Dialects},
       author = {Martijn Schuemie and Marc Suchard},
       year = {2024},
    -  note = {R package version 1.18.1, https://github.com/OHDSI/SqlRender},
    +  note = {R package version 1.19.0, https://github.com/OHDSI/SqlRender},
       url = {https://ohdsi.github.io/SqlRender/},
     }
    @@ -104,15 +104,15 @@

    Citation

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/index.html b/docs/index.html index 7e590d2..614817a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,14 +12,14 @@ - + - +
    @@ -45,7 +45,7 @@
    - +
    - - + + diff --git a/docs/news/index.html b/docs/news/index.html index e79ed4e..9ca8437 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -64,7 +64,16 @@

    Changelog

    - + +

    Changes:

    +
    1. When creating emulated temp tables (Oracle, Spark, BigQuery), will first attempt to drop (if exist). This is to clean up any orphan tables from a previous (unsuccesful) run.

    2. +
    3. Adding tentative support for InterSystems IRIS. Could still be removed.

    4. +

    Bugfixes:

    +
    1. On Snowflake, fixed ‘This session does not have a current schema’ error when translating legacy IF OBJECT_ID('tempdb..#table', 'U') IS NOT NULL DROP TABLE #table; +
    2. +
    +
    +

    Changes:

    1. Changing Spark translation of DATEADD() from DATE_ADD() to DATEADD() as required by some but not all Databricks instances.

    Bugfixes:

    @@ -427,15 +436,15 @@
    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 82b1851..50601a7 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,7 +1,6 @@ pandoc: 3.1.11 -pkgdown: 2.0.9 +pkgdown: 2.1.1 pkgdown_sha: ~ articles: UsingSqlRender: UsingSqlRender.html -last_built: 2024-08-09T14:07Z - +last_built: 2024-09-30T06:33Z diff --git a/docs/reference/SqlRender-package.html b/docs/reference/SqlRender-package.html index cbe23c5..e655743 100644 --- a/docs/reference/SqlRender-package.html +++ b/docs/reference/SqlRender-package.html @@ -1,9 +1,9 @@ -SqlRender: Rendering Parameterized SQL and Translation to Dialects — SqlRender-package • SqlRenderSqlRender: Rendering Parameterized SQL and Translation to Dialects — SqlRender-package • SqlRender - +
    @@ -28,7 +28,7 @@
    - +
    @@ -65,7 +65,7 @@

    SqlRender: Rendering Parameterized SQL and Translation to Dialects

    -

    A rendering tool for parameterized SQL that also translates into different SQL dialects. These dialects include 'Microsoft SQL Server', 'Oracle', 'PostgreSql', 'Amazon RedShift', 'Apache Impala', 'IBM Netezza', 'Google BigQuery', 'Microsoft PDW', 'Snowflake', 'Azure Synapse Analytics Dedicated', 'Apache Spark', and 'SQLite'.

    +

    A rendering tool for parameterized SQL that also translates into different SQL dialects. These dialects include 'Microsoft SQL Server', 'Oracle', 'PostgreSql', 'Amazon RedShift', 'Apache Impala', 'IBM Netezza', 'Google BigQuery', 'Microsoft PDW', 'Snowflake', 'Azure Synapse Analytics Dedicated', 'Apache Spark', 'SQLite', and 'InterSystems IRIS'.

    @@ -94,15 +94,15 @@

    Author

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/camelCaseToSnakeCase.html b/docs/reference/camelCaseToSnakeCase.html index 84bdc40..6c7523a 100644 --- a/docs/reference/camelCaseToSnakeCase.html +++ b/docs/reference/camelCaseToSnakeCase.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,15 +74,15 @@

    Convert a camel case string to snake case

    Arguments

    -
    string
    + + +
    string

    The string to be converted

    Value

    - - -

    A string

    +

    A string

    @@ -104,15 +104,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/camelCaseToSnakeCaseNames.html b/docs/reference/camelCaseToSnakeCaseNames.html index 4cb7f1e..63cd539 100644 --- a/docs/reference/camelCaseToSnakeCaseNames.html +++ b/docs/reference/camelCaseToSnakeCaseNames.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,15 +74,15 @@

    Convert the names of an object from camel case to snake case

    Arguments

    -
    object
    + + +
    object

    The object of which the names should be converted

    Value

    - - -

    The same object, but with converted names.

    +

    The same object, but with converted names.

    @@ -106,15 +106,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/camelCaseToTitleCase.html b/docs/reference/camelCaseToTitleCase.html index 27727e2..6ff9d85 100644 --- a/docs/reference/camelCaseToTitleCase.html +++ b/docs/reference/camelCaseToTitleCase.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,15 +74,15 @@

    Convert a camel case string to title case

    Arguments

    -
    string
    + + +
    string

    The string to be converted

    Value

    - - -

    A string

    +

    A string

    @@ -104,15 +104,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/createRWrapperForSql.html b/docs/reference/createRWrapperForSql.html index 06ac50e..328e98e 100644 --- a/docs/reference/createRWrapperForSql.html +++ b/docs/reference/createRWrapperForSql.html @@ -5,7 +5,7 @@ - +
    @@ -30,7 +30,7 @@
    - +
    @@ -83,20 +83,22 @@

    Create an R wrapper for SQL

    Arguments

    -
    sqlFilename
    + + +
    sqlFilename

    The SQL file.

    -
    rFilename
    +
    rFilename

    The name of the R file to be generated. Defaults to the name of the SQL file with the extension reset to R.

    -
    packageName
    +
    packageName

    The name of the package that will contains the SQL file.

    -
    createRoxygenTemplate
    +
    createRoxygenTemplate

    If true, a template of Roxygen comments will be added.

    @@ -110,10 +112,10 @@

    Details

    Examples

    -
    if (FALSE) {
    +    
    if (FALSE) { # \dontrun{
     # This will create a file called CohortMethod.R:
     createRWrapperForSql("CohortMethod.sql", packageName = "CohortMethod")
    -}
    +} # }
     
    @@ -128,15 +130,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/getTempTablePrefix.html b/docs/reference/getTempTablePrefix.html index dfadf33..02a07c1 100644 --- a/docs/reference/getTempTablePrefix.html +++ b/docs/reference/getTempTablePrefix.html @@ -4,7 +4,7 @@ - +
    @@ -29,7 +29,7 @@
    - +
    @@ -76,15 +76,13 @@

    Get the prefix used for emulated temp tables for DBMSs that do not support t

    Value

    - - -

    The prefix string.

    +

    The prefix string.

    Examples

    getTempTablePrefix()
    -#> [1] "a5x3w02a"
    +#> [1] "j6z302dd"
     

    @@ -99,15 +97,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/index.html b/docs/reference/index.html index 075cbde..3672d0d 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -1,9 +1,9 @@ -Function reference • SqlRenderPackage index • SqlRender - +
    @@ -28,7 +28,7 @@
    - +
    @@ -167,15 +167,15 @@

    All functions
    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/launchSqlRenderDeveloper.html b/docs/reference/launchSqlRenderDeveloper.html index 735e1c8..ce800d3 100644 --- a/docs/reference/launchSqlRenderDeveloper.html +++ b/docs/reference/launchSqlRenderDeveloper.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,7 +74,9 @@

    Launch the SqlRender Developer Shiny app

    Arguments

    -
    launch.browser
    + + +
    launch.browser

    Should the app be launched in your default browser, or in a Shiny window. Note: copying to clipboard will not work in a Shiny window.

    @@ -97,15 +99,15 @@

    Details

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/listSupportedDialects.html b/docs/reference/listSupportedDialects.html index 8a6d3a2..8715857 100644 --- a/docs/reference/listSupportedDialects.html +++ b/docs/reference/listSupportedDialects.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,9 +74,7 @@

    List the supported target dialects

    Value

    - - -

    A data frame with two columns. The 'dialect' column contains the abbreviation used in SqlRender, and the +

    A data frame with two columns. The 'dialect' column contains the abbreviation used in SqlRender, and the 'description' column contains a more human-readable description.

    @@ -99,6 +97,7 @@

    Examples

    #> 13 duckdb DuckDB #> 14 snowflake Snowflake #> 15 synapse Azure Synapse Analytics Dedicated +#> 16 iris InterSystems IRIS
    @@ -113,15 +112,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/loadRenderTranslateSql.html b/docs/reference/loadRenderTranslateSql.html index f47db5f..6e4f03f 100644 --- a/docs/reference/loadRenderTranslateSql.html +++ b/docs/reference/loadRenderTranslateSql.html @@ -4,7 +4,7 @@ - +
    @@ -29,7 +29,7 @@
    - +
    @@ -84,34 +84,36 @@

    Load, render, and translate a SQL file in a package

    Arguments

    -
    sqlFilename
    + + +
    sqlFilename

    The source SQL file

    -
    packageName
    +
    packageName

    The name of the package that contains the SQL file

    -
    dbms
    +
    dbms

    The target dialect. Currently 'sql server', 'oracle', 'postgres', and 'redshift' are supported

    -
    ...
    +
    ...

    Parameter values used for render

    -
    tempEmulationSchema
    +
    tempEmulationSchema

    Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created.

    -
    oracleTempSchema
    +
    oracleTempSchema

    DEPRECATED: use tempEmulationSchema instead.

    -
    warnOnMissingParameters
    +
    warnOnMissingParameters

    Should a warning be raised when parameters provided to this function do not appear in the parameterized SQL that is being rendered? By default, this is TRUE.

    @@ -119,9 +121,7 @@

    Arguments

    Value

    - - -

    Returns a string containing the rendered SQL.

    +

    Returns a string containing the rendered SQL.

    Details

    @@ -134,13 +134,13 @@

    Details

    Examples

    -
    if (FALSE) {
    +    
    if (FALSE) { # \dontrun{
     renderedSql <- loadRenderTranslateSql("CohortMethod.sql",
       packageName = "CohortMethod",
       dbms = connectionDetails$dbms,
       CDM_schema = "cdmSchema"
     )
    -}
    +} # }
     
    @@ -155,15 +155,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/readSql.html b/docs/reference/readSql.html index 0dcc10a..0886676 100644 --- a/docs/reference/readSql.html +++ b/docs/reference/readSql.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,15 +74,15 @@

    Reads a SQL file

    Arguments

    -
    sourceFile
    + + +
    sourceFile

    The source SQL file

    Value

    - - -

    Returns a string containing the SQL.

    +

    Returns a string containing the SQL.

    Details

    @@ -91,9 +91,9 @@

    Details

    Examples

    -
    if (FALSE) {
    +    
    if (FALSE) { # \dontrun{
     readSql("myParamStatement.sql")
    -}
    +} # }
     
    @@ -108,15 +108,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/render.html b/docs/reference/render.html index 030a001..7ca417d 100644 --- a/docs/reference/render.html +++ b/docs/reference/render.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,25 +74,25 @@

    Render SQL code based on parameterized SQL and parameter values

    Arguments

    -
    sql
    + + +
    sql

    The parameterized SQL

    -
    warnOnMissingParameters
    +
    warnOnMissingParameters

    Should a warning be raised when parameters provided to this function do not appear in the parameterized SQL that is being rendered? By default, this is TRUE.

    -
    ...
    +
    ...

    Parameter values

    Value

    - - -

    A character string containing the rendered SQL.

    +

    A character string containing the rendered SQL.

    Details

    @@ -107,7 +107,7 @@

    Details

    {if}?{then}:{else}

    The if-then-else pattern is used to turn on or off blocks of SQL code.

    - +
    @@ -156,15 +156,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/renderSql.html b/docs/reference/renderSql.html index f673b01..1f6839c 100644 --- a/docs/reference/renderSql.html +++ b/docs/reference/renderSql.html @@ -4,7 +4,7 @@ - +
    @@ -29,7 +29,7 @@
    - +
    @@ -76,30 +76,30 @@

    Deprecated: Render SQL code based on parameterized SQL and parameter values<

    Arguments

    -
    sql
    + + +
    sql

    The parameterized SQL

    -
    warnOnMissingParameters
    +
    warnOnMissingParameters

    Should a warning be raised when parameters provided to this function do not appear in the parameterized SQL that is being rendered? By default, this is TRUE.

    -
    ...
    +
    ...

    Parameter values

    Value

    - - -

    A list containing the following elements:

    parameterizedSql
    +

    A list containing the following elements:

    parameterizedSql

    The original parameterized SQL code

    sql

    The rendered sql

    - +

    @@ -114,15 +114,15 @@

    Value

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/renderSqlFile.html b/docs/reference/renderSqlFile.html index 3e7abb9..eb42148 100644 --- a/docs/reference/renderSqlFile.html +++ b/docs/reference/renderSqlFile.html @@ -4,7 +4,7 @@ - +
    @@ -29,7 +29,7 @@
    - +
    @@ -76,21 +76,23 @@

    Render a SQL file

    Arguments

    -
    sourceFile
    + + +
    sourceFile

    The source SQL file

    -
    targetFile
    +
    targetFile

    The target SQL file

    -
    warnOnMissingParameters
    +
    warnOnMissingParameters

    Should a warning be raised when parameters provided to this function do not appear in the parameterized SQL that is being rendered? By default, this is TRUE.

    -
    ...
    +
    ...

    Parameter values

    @@ -107,14 +109,14 @@

    Details

    {if}?{then}:{else}

    The if-then-else pattern is used to turn on or off blocks of SQL code.

    - +

    Examples

    -
    if (FALSE) {
    +    
    if (FALSE) { # \dontrun{
     renderSqlFile("myParamStatement.sql", "myRenderedStatement.sql", a = "myTable")
    -}
    +} # }
     
    @@ -129,15 +131,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/snakeCaseToCamelCase.html b/docs/reference/snakeCaseToCamelCase.html index 28ba6e9..e7a1b03 100644 --- a/docs/reference/snakeCaseToCamelCase.html +++ b/docs/reference/snakeCaseToCamelCase.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,15 +74,15 @@

    Convert a snake case string to camel case

    Arguments

    -
    string
    + + +
    string

    The string to be converted

    Value

    - - -

    A string

    +

    A string

    @@ -104,15 +104,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/snakeCaseToCamelCaseNames.html b/docs/reference/snakeCaseToCamelCaseNames.html index 12123c5..97389b0 100644 --- a/docs/reference/snakeCaseToCamelCaseNames.html +++ b/docs/reference/snakeCaseToCamelCaseNames.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,15 +74,15 @@

    Convert the names of an object from snake case to camel case

    Arguments

    -
    object
    + + +
    object

    The object of which the names should be converted

    Value

    - - -

    The same object, but with converted names.

    +

    The same object, but with converted names.

    @@ -106,15 +106,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/sparkHandleInsert.html b/docs/reference/sparkHandleInsert.html index f47b4db..92e5647 100644 --- a/docs/reference/sparkHandleInsert.html +++ b/docs/reference/sparkHandleInsert.html @@ -4,7 +4,7 @@ - +
    @@ -29,7 +29,7 @@
    - +
    @@ -76,19 +76,19 @@

    Handles Spark Inserts

    Arguments

    -
    sql
    + + +
    sql

    The SQL to be translated.

    -
    connection
    +
    connection

    The connection to the database server.

    Value

    - - -

    A sql string with INSERT command modified to contain the full column list, padded with NULLS as needed.

    +

    A sql string with INSERT command modified to contain the full column list, padded with NULLS as needed.

    @@ -103,15 +103,15 @@

    Value

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/splitSql.html b/docs/reference/splitSql.html index 4919351..d870fcb 100644 --- a/docs/reference/splitSql.html +++ b/docs/reference/splitSql.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,15 +74,15 @@

    Split a single SQL string into one or more SQL statements

    Arguments

    -
    sql
    + + +
    sql

    The SQL string to split into separate statements

    Value

    - - -

    A vector of strings, one for each SQL statement

    +

    A vector of strings, one for each SQL statement

    Details

    @@ -108,15 +108,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/supportsJava8.html b/docs/reference/supportsJava8.html index 1faa043..8e8a232 100644 --- a/docs/reference/supportsJava8.html +++ b/docs/reference/supportsJava8.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,9 +74,7 @@

    Determine if Java virtual machine supports Java

    Value

    - - -

    Returns TRUE if JVM supports Java >= 8.

    +

    Returns TRUE if JVM supports Java >= 8.

    @@ -97,15 +95,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/translate.html b/docs/reference/translate.html index ef7cac5..c4c957f 100644 --- a/docs/reference/translate.html +++ b/docs/reference/translate.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -79,31 +79,32 @@

    Translates SQL from one dialect to another

    Arguments

    -
    sql
    + + +
    sql

    The SQL to be translated

    -
    targetDialect
    +
    targetDialect

    The target dialect. Currently "oracle", "postgresql", "pdw", "impala", -"sqlite", "sqlite extended", "netezza", "bigquery", "snowflake", "synapse", "spark", and "redshift" are supported. +"sqlite", "sqlite extended", "netezza", "bigquery", "snowflake", "synapse", "spark", +"redshift", and "iris" are supported. Use listSupportedDialects to get the list of supported dialects.

    -
    tempEmulationSchema
    +
    tempEmulationSchema

    Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created.

    -
    oracleTempSchema
    +
    oracleTempSchema

    DEPRECATED: use tempEmulationSchema instead.

    Value

    - - -

    A character string containing the translated SQL.

    +

    A character string containing the translated SQL.

    Details

    @@ -133,15 +134,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/translateSingleStatement.html b/docs/reference/translateSingleStatement.html index 81b7d90..d6ed0a3 100644 --- a/docs/reference/translateSingleStatement.html +++ b/docs/reference/translateSingleStatement.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -79,30 +79,31 @@

    Translates a single SQL statement from one dialect to another

    Arguments

    -
    sql
    + + +
    sql

    The SQL to be translated

    -
    targetDialect
    +
    targetDialect

    The target dialect. Currently "oracle", "postgresql", "pdw", "impala", -"sqlite", "sqlite extended", "netezza", "bigquery", "snowflake", "synapse", "spark", and "redshift" are supported.

    +"sqlite", "sqlite extended", "netezza", "bigquery", "snowflake", "synapse", "spark", +"redshift", and "iris" are supported.

    -
    tempEmulationSchema
    +
    tempEmulationSchema

    Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created.

    -
    oracleTempSchema
    +
    oracleTempSchema

    DEPRECATED: use tempEmulationSchema instead.

    Value

    - - -

    A character vector with the translated SQL.

    +

    A character vector with the translated SQL.

    Details

    @@ -132,15 +133,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/translateSql.html b/docs/reference/translateSql.html index 12b08a8..3fa7559 100644 --- a/docs/reference/translateSql.html +++ b/docs/reference/translateSql.html @@ -4,7 +4,7 @@ - +
    @@ -29,7 +29,7 @@
    - +
    @@ -76,30 +76,31 @@

    Deprecated: Translates SQL from one dialect to another

    Arguments

    -
    sql
    + + +
    sql

    The SQL to be translated

    -
    targetDialect
    +
    targetDialect

    The target dialect. Currently "oracle", "postgresql", "pdw", "impala", -"netezza", "bigquery", "snowflake", "synapse", "spark", and "redshift" are supported

    +"netezza", "bigquery", "snowflake", "synapse", "spark", "redshift", and +"iris" are supported

    -
    oracleTempSchema
    +
    oracleTempSchema

    A schema that can be used to create temp tables in when using Oracle or Impala.

    Value

    - - -

    A list containing the following elements:

    originalSql
    +

    A list containing the following elements:

    originalSql

    The original parameterized SQL code

    sql

    The translated SQL

    - +
    @@ -114,15 +115,15 @@

    Value

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/translateSqlFile.html b/docs/reference/translateSqlFile.html index ff11d9e..94b8875 100644 --- a/docs/reference/translateSqlFile.html +++ b/docs/reference/translateSqlFile.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -80,26 +80,29 @@

    Translate a SQL file

    Arguments

    -
    sourceFile
    + + +
    sourceFile

    The source SQL file

    -
    targetFile
    +
    targetFile

    The target SQL file

    -
    targetDialect
    +
    targetDialect

    The target dialect. Currently "oracle", "postgresql", "pdw", "impala", -"sqlite", "netezza", "bigquery", "snowflake", "synapse", "spark", and "redshift" are supported.

    +"sqlite", "netezza", "bigquery", "snowflake", "synapse", "spark", "redshift" +and "iris" are supported.

    -
    tempEmulationSchema
    +
    tempEmulationSchema

    Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created.

    -
    oracleTempSchema
    +
    oracleTempSchema

    DEPRECATED: use tempEmulationSchema instead.

    @@ -110,12 +113,12 @@

    Details

    Examples

    -
    if (FALSE) {
    +    
    if (FALSE) { # \dontrun{
     translateSqlFile("myRenderedStatement.sql",
       "myTranslatedStatement.sql",
       targetDialect = "postgresql"
     )
    -}
    +} # }
     
    @@ -130,15 +133,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/reference/writeSql.html b/docs/reference/writeSql.html index 91c0da0..b9c95d5 100644 --- a/docs/reference/writeSql.html +++ b/docs/reference/writeSql.html @@ -3,7 +3,7 @@ - +
    @@ -28,7 +28,7 @@
    - +
    @@ -74,11 +74,13 @@

    Write SQL to a SQL (text) file

    Arguments

    -
    sql
    + + +
    sql

    A string containing the sql

    -
    targetFile
    +
    targetFile

    The target SQL file

    @@ -89,10 +91,10 @@

    Details

    Examples

    -
    if (FALSE) {
    +    
    if (FALSE) { # \dontrun{
     sql <- "SELECT * FROM @table_name"
     writeSql(sql, "myParamStatement.sql")
    -}
    +} # }
     
    @@ -107,15 +109,15 @@

    Examples

    -

    Site built with pkgdown 2.0.9.

    +

    Site built with pkgdown 2.1.1.

    - - + + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 89c1b0d..5df3356 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -1,99 +1,34 @@ - - - - /404.html - - - /articles/UsingSqlRender.html - - - /articles/index.html - - - /authors.html - - - /index.html - - - /news/index.html - - - /pull_request_template.html - - - /reference/SqlRender-package.html - - - /reference/SqlRender.html - - - /reference/camelCaseToSnakeCase.html - - - /reference/camelCaseToSnakeCaseNames.html - - - /reference/camelCaseToTitleCase.html - - - /reference/createRWrapperForSql.html - - - /reference/getTempTablePrefix.html - - - /reference/index.html - - - /reference/launchSqlRenderDeveloper.html - - - /reference/listSupportedDialects.html - - - /reference/loadRenderTranslateSql.html - - - /reference/readSql.html - - - /reference/render.html - - - /reference/renderSql.html - - - /reference/renderSqlFile.html - - - /reference/snakeCaseToCamelCase.html - - - /reference/snakeCaseToCamelCaseNames.html - - - /reference/sparkHandleInsert.html - - - /reference/splitSql.html - - - /reference/supportsJava8.html - - - /reference/translate.html - - - /reference/translateSingleStatement.html - - - /reference/translateSql.html - - - /reference/translateSqlFile.html - - - /reference/writeSql.html - + +/404.html +/articles/UsingSqlRender.html +/articles/index.html +/authors.html +/index.html +/news/index.html +/pull_request_template.html +/reference/SqlRender-package.html +/reference/camelCaseToSnakeCase.html +/reference/camelCaseToSnakeCaseNames.html +/reference/camelCaseToTitleCase.html +/reference/createRWrapperForSql.html +/reference/getTempTablePrefix.html +/reference/index.html +/reference/launchSqlRenderDeveloper.html +/reference/listSupportedDialects.html +/reference/loadRenderTranslateSql.html +/reference/readSql.html +/reference/render.html +/reference/renderSql.html +/reference/renderSqlFile.html +/reference/snakeCaseToCamelCase.html +/reference/snakeCaseToCamelCaseNames.html +/reference/sparkHandleInsert.html +/reference/splitSql.html +/reference/supportsJava8.html +/reference/translate.html +/reference/translateSingleStatement.html +/reference/translateSql.html +/reference/translateSqlFile.html +/reference/writeSql.html + diff --git a/extras/SqlRender.pdf b/extras/SqlRender.pdf index 73db64d..e426692 100644 Binary files a/extras/SqlRender.pdf and b/extras/SqlRender.pdf differ diff --git a/inst/doc/UsingSqlRender.pdf b/inst/doc/UsingSqlRender.pdf index d8036d9..cd4b62d 100644 Binary files a/inst/doc/UsingSqlRender.pdf and b/inst/doc/UsingSqlRender.pdf differ diff --git a/pom.xml b/pom.xml index 625388b..ffe66fd 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.ohdsi.sql SqlRender jar - 1.18.1-SNAPSHOT + 1.19.0-SNAPSHOT SqlRender scm:git:https://github.com/OHDSI/SqlRender