File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ DatabaseReaderTask
2
+ ==================
3
+
4
+ Writes data to a database.
5
+
6
+ Task reference
7
+ --------------
8
+
9
+ * ** Service** : ` CleverAge\DoctrineProcessBundle\Task\Database\DatabaseUpdaterTask `
10
+
11
+ Accepted inputs
12
+ ---------------
13
+
14
+ Input can be used as the query params if needed
15
+
16
+ Possible outputs
17
+ ----------------
18
+
19
+ Iterate on an entity list returned by a sql query.
20
+
21
+ Options
22
+ -------
23
+
24
+ | Code | Type | Required | Default | Description |
25
+ | -------------------| --------------------| :--------:| -----------| ------------------------------------------------|
26
+ | ` connection ` | ` string ` | | ` null ` | Doctrine connection (default if not specified) |
27
+ | ` sql ` | ` string ` | ** X** | ` null ` | Query to execute |
28
+ | ` input_as_params ` | ` bool ` | | ` false ` | Use the input as params |
29
+ | ` params ` | ` array ` | | ` [] ` | Query params |
30
+ | ` types ` | ` array ` | | ` [] ` | Query params types |
31
+
32
+ Example
33
+ -------
34
+
35
+ ``` yaml
36
+ entry :
37
+ service : ' @CleverAge\DoctrineProcessBundle\Task\Database\DatabaseUpdaterTask'
38
+ options :
39
+ sql : ' update author set firstname = :firstname, lastname = :lastname'
40
+ input_as_params : false
41
+ params :
42
+ firstname : ' Pascal'
43
+ lastname : ' Dupont'
44
+ ` ` `
You can’t perform that action at this time.
0 commit comments