You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>You can run incremental queries based on the date of the last sync. <br/>The query will be rewritten to replace <code>:last_updated_at</code> with the date of the last successful sync operation.</p>
38
-
<br/>
39
-
<p>For example to import entries from a <code>users</code> table with a date column named <code>updated_at</code>, you can write :</p>
40
-
<code>SELECT id as external_id, email as email FROM users WHERE updated_at >= :last_updated_at</code>
41
-
<hr/>
37
+
<h6>How to write queries</h6>
38
+
<p>
39
+
Valid queries MUST expose an `external_id` column or an `email` column. Lines with no `external_id` or `email` will be ignored.
40
+
<br/>
41
+
All other fields will be imported as traits on the matching users.
42
+
<br/>
43
+
For example, the following query will map the column `users.id` to your Hull users' `external_id`.
44
+
<pre><code>
45
+
SELECT user_id as external_id, plan_name, monthly_amount FROM users_subscriptions
46
+
</code></pre>
47
+
</p>
48
+
<h6>Using incremental queries</h6>
49
+
<p>
50
+
You can run incremental queries based on the date of the last sync.
51
+
<br/>
52
+
The query will be rewritten to replace <code>:last_updated_at</code> with the date of the last successful sync operation.
53
+
<br/><br/>
54
+
For example to import entries from a <code>users</code> table with a date column named <code>updated_at</code>, you can write :
55
+
<pre><code>
56
+
SELECT id as external_id, email as email, firstname as first_name
0 commit comments