@@ -21,16 +21,16 @@ const truncateInsertsQuery = meda.GenericQuery(`
21
21
//
22
22
// The query requires several parameters:
23
23
//
24
- // previous_id - The ID previously returned by the query, i.e. the last ID
25
- // of the previous chunk. For the first query, this should be
26
- // set to 0.
27
- // chunk_size - Number of records to be included in the chunk.
24
+ // previous_id - The ID previously returned by the query, i.e. the last ID
25
+ // of the previous chunk. For the first query, this should be
26
+ // set to 0.
27
+ // chunk_size - Number of records to be included in the chunk.
28
28
//
29
29
// The query outputs zero or a single row with one column. After the query has
30
30
// returned the last chunk, subsequent queries (with previous_id = last row ID
31
31
// of last chunk) return no rows.
32
32
//
33
- // id - The ID of the last row included in the chunk.
33
+ // id - The ID of the last row included in the chunk.
34
34
const nextInsertsChunkQuery = meda .GenericQuery (`
35
35
(
36
36
SELECT
@@ -51,16 +51,16 @@ const nextInsertsChunkQuery = meda.GenericQuery(`
51
51
//
52
52
// The query requires several parameters:
53
53
//
54
- // previous_id - The ID previously returned by the query, i.e. the last ID
55
- // of the previous chunk. For the first query, this should be
56
- // set to 0.
57
- // chunk_size - Number of records to be included in the chunk.
54
+ // previous_id - The ID previously returned by the query, i.e. the last ID
55
+ // of the previous chunk. For the first query, this should be
56
+ // set to 0.
57
+ // chunk_size - Number of records to be included in the chunk.
58
58
//
59
59
// The query outputs zero or a single row with one column. After the query has
60
60
// returned the last chunk, subsequent queries (with previous_id = last row ID
61
61
// of last chunk) return no rows.
62
62
//
63
- // id - The ID of the last row included in the chunk.
63
+ // id - The ID of the last row included in the chunk.
64
64
const nextFilesChunkQuery = meda .GenericQuery (`
65
65
(
66
66
SELECT
@@ -80,18 +80,18 @@ const nextFilesChunkQuery = meda.GenericQuery(`
80
80
//
81
81
// The query requires several parameters:
82
82
//
83
- // run_id - The ID of the run for which the synchronisation
84
- // takes place.
85
- // incremental_mode - 1 if the synchronisation takes place in incremental
86
- // mode, 0 otherwise.
87
- // incremental_mode - 1 if the synchronisation takes place in incremental
88
- // mode, 0 otherwise.
89
- // run_id - The ID of the run for which the synchronisation
90
- // takes place.
91
- // prev_inserts_id - The last ID of the inserts table included in the
92
- // previous chunk.
93
- // last_inserts_id - The last ID of the inserts table included in the
94
- // current chunk.
83
+ // run_id - The ID of the run for which the synchronisation
84
+ // takes place.
85
+ // incremental_mode - 1 if the synchronisation takes place in incremental
86
+ // mode, 0 otherwise.
87
+ // incremental_mode - 1 if the synchronisation takes place in incremental
88
+ // mode, 0 otherwise.
89
+ // run_id - The ID of the run for which the synchronisation
90
+ // takes place.
91
+ // prev_inserts_id - The last ID of the inserts table included in the
92
+ // previous chunk.
93
+ // last_inserts_id - The last ID of the inserts table included in the
94
+ // current chunk.
95
95
//
96
96
// The to_be_read field is set to 1 if not running in incremental mode. In
97
97
// incremental mode the field is set to 1 if the modification_time differs.
@@ -151,12 +151,12 @@ const updateQuery = meda.GenericQuery(`
151
151
//
152
152
// The query requires one parameter:
153
153
//
154
- // run_id - The ID of the run for which the synchronisation takes
155
- // place.
156
- // prev_inserts_id - The last ID of the inserts table included in the
157
- // previous chunk.
158
- // last_inserts_id - The last ID of the inserts table included in the
159
- // current chunk.
154
+ // run_id - The ID of the run for which the synchronisation takes
155
+ // place.
156
+ // prev_inserts_id - The last ID of the inserts table included in the
157
+ // previous chunk.
158
+ // last_inserts_id - The last ID of the inserts table included in the
159
+ // current chunk.
160
160
//
161
161
// After execution, the number of inserted / copied rows can be retrieved
162
162
// using RowsAffected().
@@ -181,12 +181,12 @@ const insertQuery = meda.GenericQuery(`
181
181
//
182
182
// The query requires one parameter:
183
183
//
184
- // run_id - The ID of the run for which the synchronisation takes
185
- // place.
186
- // prev_files_id - The last ID of the files table included in the previous
187
- // chunk.
188
- // last_files_id - The last ID of the files table included in the current
189
- // chunk.
184
+ // run_id - The ID of the run for which the synchronisation takes
185
+ // place.
186
+ // prev_files_id - The last ID of the files table included in the previous
187
+ // chunk.
188
+ // last_files_id - The last ID of the files table included in the current
189
+ // chunk.
190
190
//
191
191
// After execution, the number of deleted rows can be retrieved using
192
192
// RowsAffected().
0 commit comments