diff --git a/docs/connectivity/sql/index.html b/docs/connectivity/sql/index.html index 62e0901..2e3a6f1 100644 --- a/docs/connectivity/sql/index.html +++ b/docs/connectivity/sql/index.html @@ -66,21 +66,21 @@ - +
- - + +
@@ -232,15 +232,15 @@

- + - - + + SQL

- +

Building an extractor

-

In the configuration of your extractor, you must write your query avec l’option query.

+

In the configuration of your extractor, you must write your query with the option query.

sql:
   extractor:
     query: 'SELECT * FROM table1'
@@ -776,7 +776,7 @@ 

Persistent

Building a lookup

In some cases, you will need to perform lookups by joining data from input columns to columns in a reference dataset; this is called a lookup.

-

In the configuration of your lookup, you must write your query avec l’option query.

+

In the configuration of your lookup, you must write your query with the option query.

The merge option allows you to add data to your dataset, in a sense merging your actual dataset with your new data.

The map option comes from the FastMap plugin, feel free to read its documentation to understand how to use it.

@@ -810,7 +810,7 @@

Persistent

expression: 'lookup["name"]' # ...

Building a loader

-

In the configuration of your loader, you must write your query avec l’option query.

+

In the configuration of your loader, you must write your query with the option query.

sql:
   loader:
     query: 'INSERT INTO table1 VALUES (bar, foo, barfoo)'
@@ -851,7 +851,7 @@ 

Using params in your queries

If you are using a prepared statement using interrogative markers (?), your parameter’s key in the configuration will be its position (starting from 1) :

sql:
-  loader: 
+  loader:
     query: 'INSERT INTO table1 VALUES (?, ?, ?)'
     parameters:
       1:
@@ -867,7 +867,7 @@ 

Using params in your queries

Using from instead of value will bind as many parameters as there are values in the path.

And use the expression inSql(path, parameter_name) to prepare the values in the query.

sql:
-  loader: 
+  loader:
     query: '@="SELECT * FROM category WHERE id " ~ inSql(input["codes_list"], "identifier") ~ "'
     parameters:
       identifier:
@@ -875,7 +875,7 @@ 

Using params in your queries

# ...

If at runtime there are 4 values under [codes_list], this would be equivalent to writing:

sql:
-  loader: 
+  loader:
     query: 'SELECT * FROM category WHERE id IN (:identifier_0, :identifier_1, :identifier_2, :identifier_3)'
     parameters:
       identifier_0:
@@ -908,855 +908,855 @@ 

Before queries

- 'DROP TABLE foo' # ...
- + -
- - - -
- - -