Skip to content
Snippets Groups Projects
Commit 05a781ff authored by MORIN Edouard's avatar MORIN Edouard
Browse files

feat: mise en place test-6 7 8 pour comments

parent c094fcfb
No related branches found
No related tags found
1 merge request!12Mise en place test + #31
Pipeline #527563 passed with warnings
...@@ -10,15 +10,19 @@ ...@@ -10,15 +10,19 @@
3 3 4.7 3.2 1.3 0.2 setosa 3 3 4.7 3.2 1.3 0.2 setosa
4 4 4.6 3.1 1.5 0.2 setosa 4 4 4.6 3.1 1.5 0.2 setosa
todate todate
1 2025-02-26 15:14:26 1 2025-02-26 18:29:32
2 2025-02-26 15:14:26 2 2025-02-26 18:29:32
3 2025-02-26 15:14:26 3 2025-02-26 18:29:32
4 2025-02-26 15:14:26 4 2025-02-26 18:29:32
--- ---
Code Code
importer_data(table = "nc", schema = "public", db = "test_datalibaba", user = "test") importer_data(table = "nc", schema = "public", db = "test_datalibaba", user = "test")
Condition
Warning:
Use of .data in tidyselect expressions was deprecated in tidyselect 1.2.0.
i Please use `"id_row__"` instead of `.data$id_row__`
Output Output
Simple feature collection with 100 features and 14 fields Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON Geometry type: MULTIPOLYGON
...@@ -54,6 +58,10 @@ ...@@ -54,6 +58,10 @@
Code Code
importer_data(table = "nc", schema = "public", db = "test_datalibaba", user = "test", importer_data(table = "nc", schema = "public", db = "test_datalibaba", user = "test",
limit = 4) limit = 4)
Condition
Warning:
Use of .data in tidyselect expressions was deprecated in tidyselect 1.2.0.
i Please use `"id_row__"` instead of `.data$id_row__`
Output Output
Simple feature collection with 4 features and 14 fields Simple feature collection with 4 features and 14 fields
Geometry type: MULTIPOLYGON Geometry type: MULTIPOLYGON
...@@ -228,156 +236,156 @@ ...@@ -228,156 +236,156 @@
149 149 6.2 3.4 5.4 2.3 virginica 149 149 6.2 3.4 5.4 2.3 virginica
150 150 5.9 3.0 5.1 1.8 virginica 150 150 5.9 3.0 5.1 1.8 virginica
todate r_row_names__ todate r_row_names__
1 2025-02-26 16:14:26 1 1 2025-02-26 19:29:32 1
2 2025-02-26 16:14:26 2 2 2025-02-26 19:29:32 2
3 2025-02-26 16:14:26 3 3 2025-02-26 19:29:32 3
4 2025-02-26 16:14:26 4 4 2025-02-26 19:29:32 4
5 2025-02-26 16:14:26 5 5 2025-02-26 19:29:32 5
6 2025-02-26 16:14:26 6 6 2025-02-26 19:29:32 6
7 2025-02-26 16:14:26 7 7 2025-02-26 19:29:32 7
8 2025-02-26 16:14:26 8 8 2025-02-26 19:29:32 8
9 2025-02-26 16:14:26 9 9 2025-02-26 19:29:32 9
10 2025-02-26 16:14:26 10 10 2025-02-26 19:29:32 10
11 2025-02-26 16:14:26 11 11 2025-02-26 19:29:32 11
12 2025-02-26 16:14:26 12 12 2025-02-26 19:29:32 12
13 2025-02-26 16:14:26 13 13 2025-02-26 19:29:32 13
14 2025-02-26 16:14:26 14 14 2025-02-26 19:29:32 14
15 2025-02-26 16:14:26 15 15 2025-02-26 19:29:32 15
16 2025-02-26 16:14:26 16 16 2025-02-26 19:29:32 16
17 2025-02-26 16:14:26 17 17 2025-02-26 19:29:32 17
18 2025-02-26 16:14:26 18 18 2025-02-26 19:29:32 18
19 2025-02-26 16:14:26 19 19 2025-02-26 19:29:32 19
20 2025-02-26 16:14:26 20 20 2025-02-26 19:29:32 20
21 2025-02-26 16:14:26 21 21 2025-02-26 19:29:32 21
22 2025-02-26 16:14:26 22 22 2025-02-26 19:29:32 22
23 2025-02-26 16:14:26 23 23 2025-02-26 19:29:32 23
24 2025-02-26 16:14:26 24 24 2025-02-26 19:29:32 24
25 2025-02-26 16:14:26 25 25 2025-02-26 19:29:32 25
26 2025-02-26 16:14:26 26 26 2025-02-26 19:29:32 26
27 2025-02-26 16:14:26 27 27 2025-02-26 19:29:32 27
28 2025-02-26 16:14:26 28 28 2025-02-26 19:29:32 28
29 2025-02-26 16:14:26 29 29 2025-02-26 19:29:32 29
30 2025-02-26 16:14:26 30 30 2025-02-26 19:29:32 30
31 2025-02-26 16:14:26 31 31 2025-02-26 19:29:32 31
32 2025-02-26 16:14:26 32 32 2025-02-26 19:29:32 32
33 2025-02-26 16:14:26 33 33 2025-02-26 19:29:32 33
34 2025-02-26 16:14:26 34 34 2025-02-26 19:29:32 34
35 2025-02-26 16:14:26 35 35 2025-02-26 19:29:32 35
36 2025-02-26 16:14:26 36 36 2025-02-26 19:29:32 36
37 2025-02-26 16:14:26 37 37 2025-02-26 19:29:32 37
38 2025-02-26 16:14:26 38 38 2025-02-26 19:29:32 38
39 2025-02-26 16:14:26 39 39 2025-02-26 19:29:32 39
40 2025-02-26 16:14:26 40 40 2025-02-26 19:29:32 40
41 2025-02-26 16:14:26 41 41 2025-02-26 19:29:32 41
42 2025-02-26 16:14:26 42 42 2025-02-26 19:29:32 42
43 2025-02-26 16:14:26 43 43 2025-02-26 19:29:32 43
44 2025-02-26 16:14:26 44 44 2025-02-26 19:29:32 44
45 2025-02-26 16:14:26 45 45 2025-02-26 19:29:32 45
46 2025-02-26 16:14:26 46 46 2025-02-26 19:29:32 46
47 2025-02-26 16:14:26 47 47 2025-02-26 19:29:32 47
48 2025-02-26 16:14:26 48 48 2025-02-26 19:29:32 48
49 2025-02-26 16:14:26 49 49 2025-02-26 19:29:32 49
50 2025-02-26 16:14:26 50 50 2025-02-26 19:29:32 50
51 2025-02-26 16:14:26 51 51 2025-02-26 19:29:32 51
52 2025-02-26 16:14:26 52 52 2025-02-26 19:29:32 52
53 2025-02-26 16:14:26 53 53 2025-02-26 19:29:32 53
54 2025-02-26 16:14:26 54 54 2025-02-26 19:29:32 54
55 2025-02-26 16:14:26 55 55 2025-02-26 19:29:32 55
56 2025-02-26 16:14:26 56 56 2025-02-26 19:29:32 56
57 2025-02-26 16:14:26 57 57 2025-02-26 19:29:32 57
58 2025-02-26 16:14:26 58 58 2025-02-26 19:29:32 58
59 2025-02-26 16:14:26 59 59 2025-02-26 19:29:32 59
60 2025-02-26 16:14:26 60 60 2025-02-26 19:29:32 60
61 2025-02-26 16:14:26 61 61 2025-02-26 19:29:32 61
62 2025-02-26 16:14:26 62 62 2025-02-26 19:29:32 62
63 2025-02-26 16:14:26 63 63 2025-02-26 19:29:32 63
64 2025-02-26 16:14:26 64 64 2025-02-26 19:29:32 64
65 2025-02-26 16:14:26 65 65 2025-02-26 19:29:32 65
66 2025-02-26 16:14:26 66 66 2025-02-26 19:29:32 66
67 2025-02-26 16:14:26 67 67 2025-02-26 19:29:32 67
68 2025-02-26 16:14:26 68 68 2025-02-26 19:29:32 68
69 2025-02-26 16:14:26 69 69 2025-02-26 19:29:32 69
70 2025-02-26 16:14:26 70 70 2025-02-26 19:29:32 70
71 2025-02-26 16:14:26 71 71 2025-02-26 19:29:32 71
72 2025-02-26 16:14:26 72 72 2025-02-26 19:29:32 72
73 2025-02-26 16:14:26 73 73 2025-02-26 19:29:32 73
74 2025-02-26 16:14:26 74 74 2025-02-26 19:29:32 74
75 2025-02-26 16:14:26 75 75 2025-02-26 19:29:32 75
76 2025-02-26 16:14:26 76 76 2025-02-26 19:29:32 76
77 2025-02-26 16:14:26 77 77 2025-02-26 19:29:32 77
78 2025-02-26 16:14:26 78 78 2025-02-26 19:29:32 78
79 2025-02-26 16:14:26 79 79 2025-02-26 19:29:32 79
80 2025-02-26 16:14:26 80 80 2025-02-26 19:29:32 80
81 2025-02-26 16:14:26 81 81 2025-02-26 19:29:32 81
82 2025-02-26 16:14:26 82 82 2025-02-26 19:29:32 82
83 2025-02-26 16:14:26 83 83 2025-02-26 19:29:32 83
84 2025-02-26 16:14:26 84 84 2025-02-26 19:29:32 84
85 2025-02-26 16:14:26 85 85 2025-02-26 19:29:32 85
86 2025-02-26 16:14:26 86 86 2025-02-26 19:29:32 86
87 2025-02-26 16:14:26 87 87 2025-02-26 19:29:32 87
88 2025-02-26 16:14:26 88 88 2025-02-26 19:29:32 88
89 2025-02-26 16:14:26 89 89 2025-02-26 19:29:32 89
90 2025-02-26 16:14:26 90 90 2025-02-26 19:29:32 90
91 2025-02-26 16:14:26 91 91 2025-02-26 19:29:32 91
92 2025-02-26 16:14:26 92 92 2025-02-26 19:29:32 92
93 2025-02-26 16:14:26 93 93 2025-02-26 19:29:32 93
94 2025-02-26 16:14:26 94 94 2025-02-26 19:29:32 94
95 2025-02-26 16:14:26 95 95 2025-02-26 19:29:32 95
96 2025-02-26 16:14:26 96 96 2025-02-26 19:29:32 96
97 2025-02-26 16:14:26 97 97 2025-02-26 19:29:32 97
98 2025-02-26 16:14:26 98 98 2025-02-26 19:29:32 98
99 2025-02-26 16:14:26 99 99 2025-02-26 19:29:32 99
100 2025-02-26 16:14:26 100 100 2025-02-26 19:29:32 100
101 2025-02-26 16:14:26 101 101 2025-02-26 19:29:32 101
102 2025-02-26 16:14:26 102 102 2025-02-26 19:29:32 102
103 2025-02-26 16:14:26 103 103 2025-02-26 19:29:32 103
104 2025-02-26 16:14:26 104 104 2025-02-26 19:29:32 104
105 2025-02-26 16:14:26 105 105 2025-02-26 19:29:32 105
106 2025-02-26 16:14:26 106 106 2025-02-26 19:29:32 106
107 2025-02-26 16:14:26 107 107 2025-02-26 19:29:32 107
108 2025-02-26 16:14:26 108 108 2025-02-26 19:29:32 108
109 2025-02-26 16:14:26 109 109 2025-02-26 19:29:32 109
110 2025-02-26 16:14:26 110 110 2025-02-26 19:29:32 110
111 2025-02-26 16:14:26 111 111 2025-02-26 19:29:32 111
112 2025-02-26 16:14:26 112 112 2025-02-26 19:29:32 112
113 2025-02-26 16:14:26 113 113 2025-02-26 19:29:32 113
114 2025-02-26 16:14:26 114 114 2025-02-26 19:29:32 114
115 2025-02-26 16:14:26 115 115 2025-02-26 19:29:32 115
116 2025-02-26 16:14:26 116 116 2025-02-26 19:29:32 116
117 2025-02-26 16:14:26 117 117 2025-02-26 19:29:32 117
118 2025-02-26 16:14:26 118 118 2025-02-26 19:29:32 118
119 2025-02-26 16:14:26 119 119 2025-02-26 19:29:32 119
120 2025-02-26 16:14:26 120 120 2025-02-26 19:29:32 120
121 2025-02-26 16:14:26 121 121 2025-02-26 19:29:32 121
122 2025-02-26 16:14:26 122 122 2025-02-26 19:29:32 122
123 2025-02-26 16:14:26 123 123 2025-02-26 19:29:32 123
124 2025-02-26 16:14:26 124 124 2025-02-26 19:29:32 124
125 2025-02-26 16:14:26 125 125 2025-02-26 19:29:32 125
126 2025-02-26 16:14:26 126 126 2025-02-26 19:29:32 126
127 2025-02-26 16:14:26 127 127 2025-02-26 19:29:32 127
128 2025-02-26 16:14:26 128 128 2025-02-26 19:29:32 128
129 2025-02-26 16:14:26 129 129 2025-02-26 19:29:32 129
130 2025-02-26 16:14:26 130 130 2025-02-26 19:29:32 130
131 2025-02-26 16:14:26 131 131 2025-02-26 19:29:32 131
132 2025-02-26 16:14:26 132 132 2025-02-26 19:29:32 132
133 2025-02-26 16:14:26 133 133 2025-02-26 19:29:32 133
134 2025-02-26 16:14:26 134 134 2025-02-26 19:29:32 134
135 2025-02-26 16:14:26 135 135 2025-02-26 19:29:32 135
136 2025-02-26 16:14:26 136 136 2025-02-26 19:29:32 136
137 2025-02-26 16:14:26 137 137 2025-02-26 19:29:32 137
138 2025-02-26 16:14:26 138 138 2025-02-26 19:29:32 138
139 2025-02-26 16:14:26 139 139 2025-02-26 19:29:32 139
140 2025-02-26 16:14:26 140 140 2025-02-26 19:29:32 140
141 2025-02-26 16:14:26 141 141 2025-02-26 19:29:32 141
142 2025-02-26 16:14:26 142 142 2025-02-26 19:29:32 142
143 2025-02-26 16:14:26 143 143 2025-02-26 19:29:32 143
144 2025-02-26 16:14:26 144 144 2025-02-26 19:29:32 144
145 2025-02-26 16:14:26 145 145 2025-02-26 19:29:32 145
146 2025-02-26 16:14:26 146 146 2025-02-26 19:29:32 146
147 2025-02-26 16:14:26 147 147 2025-02-26 19:29:32 147
148 2025-02-26 16:14:26 148 148 2025-02-26 19:29:32 148
149 2025-02-26 16:14:26 149 149 2025-02-26 19:29:32 149
150 2025-02-26 16:14:26 150 150 2025-02-26 19:29:32 150
# get_data_dbi works # get_data_dbi works
...@@ -536,154 +544,154 @@ ...@@ -536,154 +544,154 @@
149 149 6.2 3.4 5.4 2.3 virginica 149 149 6.2 3.4 5.4 2.3 virginica
150 150 5.9 3.0 5.1 1.8 virginica 150 150 5.9 3.0 5.1 1.8 virginica
todate r_row_names__ todate r_row_names__
1 2025-02-26 15:14:26 1 1 2025-02-26 18:29:32 1
2 2025-02-26 15:14:26 2 2 2025-02-26 18:29:32 2
3 2025-02-26 15:14:26 3 3 2025-02-26 18:29:32 3
4 2025-02-26 15:14:26 4 4 2025-02-26 18:29:32 4
5 2025-02-26 15:14:26 5 5 2025-02-26 18:29:32 5
6 2025-02-26 15:14:26 6 6 2025-02-26 18:29:32 6
7 2025-02-26 15:14:26 7 7 2025-02-26 18:29:32 7
8 2025-02-26 15:14:26 8 8 2025-02-26 18:29:32 8
9 2025-02-26 15:14:26 9 9 2025-02-26 18:29:32 9
10 2025-02-26 15:14:26 10 10 2025-02-26 18:29:32 10
11 2025-02-26 15:14:26 11 11 2025-02-26 18:29:32 11
12 2025-02-26 15:14:26 12 12 2025-02-26 18:29:32 12
13 2025-02-26 15:14:26 13 13 2025-02-26 18:29:32 13
14 2025-02-26 15:14:26 14 14 2025-02-26 18:29:32 14
15 2025-02-26 15:14:26 15 15 2025-02-26 18:29:32 15
16 2025-02-26 15:14:26 16 16 2025-02-26 18:29:32 16
17 2025-02-26 15:14:26 17 17 2025-02-26 18:29:32 17
18 2025-02-26 15:14:26 18 18 2025-02-26 18:29:32 18
19 2025-02-26 15:14:26 19 19 2025-02-26 18:29:32 19
20 2025-02-26 15:14:26 20 20 2025-02-26 18:29:32 20
21 2025-02-26 15:14:26 21 21 2025-02-26 18:29:32 21
22 2025-02-26 15:14:26 22 22 2025-02-26 18:29:32 22
23 2025-02-26 15:14:26 23 23 2025-02-26 18:29:32 23
24 2025-02-26 15:14:26 24 24 2025-02-26 18:29:32 24
25 2025-02-26 15:14:26 25 25 2025-02-26 18:29:32 25
26 2025-02-26 15:14:26 26 26 2025-02-26 18:29:32 26
27 2025-02-26 15:14:26 27 27 2025-02-26 18:29:32 27
28 2025-02-26 15:14:26 28 28 2025-02-26 18:29:32 28
29 2025-02-26 15:14:26 29 29 2025-02-26 18:29:32 29
30 2025-02-26 15:14:26 30 30 2025-02-26 18:29:32 30
31 2025-02-26 15:14:26 31 31 2025-02-26 18:29:32 31
32 2025-02-26 15:14:26 32 32 2025-02-26 18:29:32 32
33 2025-02-26 15:14:26 33 33 2025-02-26 18:29:32 33
34 2025-02-26 15:14:26 34 34 2025-02-26 18:29:32 34
35 2025-02-26 15:14:26 35 35 2025-02-26 18:29:32 35
36 2025-02-26 15:14:26 36 36 2025-02-26 18:29:32 36
37 2025-02-26 15:14:26 37 37 2025-02-26 18:29:32 37
38 2025-02-26 15:14:26 38 38 2025-02-26 18:29:32 38
39 2025-02-26 15:14:26 39 39 2025-02-26 18:29:32 39
40 2025-02-26 15:14:26 40 40 2025-02-26 18:29:32 40
41 2025-02-26 15:14:26 41 41 2025-02-26 18:29:32 41
42 2025-02-26 15:14:26 42 42 2025-02-26 18:29:32 42
43 2025-02-26 15:14:26 43 43 2025-02-26 18:29:32 43
44 2025-02-26 15:14:26 44 44 2025-02-26 18:29:32 44
45 2025-02-26 15:14:26 45 45 2025-02-26 18:29:32 45
46 2025-02-26 15:14:26 46 46 2025-02-26 18:29:32 46
47 2025-02-26 15:14:26 47 47 2025-02-26 18:29:32 47
48 2025-02-26 15:14:26 48 48 2025-02-26 18:29:32 48
49 2025-02-26 15:14:26 49 49 2025-02-26 18:29:32 49
50 2025-02-26 15:14:26 50 50 2025-02-26 18:29:32 50
51 2025-02-26 15:14:26 51 51 2025-02-26 18:29:32 51
52 2025-02-26 15:14:26 52 52 2025-02-26 18:29:32 52
53 2025-02-26 15:14:26 53 53 2025-02-26 18:29:32 53
54 2025-02-26 15:14:26 54 54 2025-02-26 18:29:32 54
55 2025-02-26 15:14:26 55 55 2025-02-26 18:29:32 55
56 2025-02-26 15:14:26 56 56 2025-02-26 18:29:32 56
57 2025-02-26 15:14:26 57 57 2025-02-26 18:29:32 57
58 2025-02-26 15:14:26 58 58 2025-02-26 18:29:32 58
59 2025-02-26 15:14:26 59 59 2025-02-26 18:29:32 59
60 2025-02-26 15:14:26 60 60 2025-02-26 18:29:32 60
61 2025-02-26 15:14:26 61 61 2025-02-26 18:29:32 61
62 2025-02-26 15:14:26 62 62 2025-02-26 18:29:32 62
63 2025-02-26 15:14:26 63 63 2025-02-26 18:29:32 63
64 2025-02-26 15:14:26 64 64 2025-02-26 18:29:32 64
65 2025-02-26 15:14:26 65 65 2025-02-26 18:29:32 65
66 2025-02-26 15:14:26 66 66 2025-02-26 18:29:32 66
67 2025-02-26 15:14:26 67 67 2025-02-26 18:29:32 67
68 2025-02-26 15:14:26 68 68 2025-02-26 18:29:32 68
69 2025-02-26 15:14:26 69 69 2025-02-26 18:29:32 69
70 2025-02-26 15:14:26 70 70 2025-02-26 18:29:32 70
71 2025-02-26 15:14:26 71 71 2025-02-26 18:29:32 71
72 2025-02-26 15:14:26 72 72 2025-02-26 18:29:32 72
73 2025-02-26 15:14:26 73 73 2025-02-26 18:29:32 73
74 2025-02-26 15:14:26 74 74 2025-02-26 18:29:32 74
75 2025-02-26 15:14:26 75 75 2025-02-26 18:29:32 75
76 2025-02-26 15:14:26 76 76 2025-02-26 18:29:32 76
77 2025-02-26 15:14:26 77 77 2025-02-26 18:29:32 77
78 2025-02-26 15:14:26 78 78 2025-02-26 18:29:32 78
79 2025-02-26 15:14:26 79 79 2025-02-26 18:29:32 79
80 2025-02-26 15:14:26 80 80 2025-02-26 18:29:32 80
81 2025-02-26 15:14:26 81 81 2025-02-26 18:29:32 81
82 2025-02-26 15:14:26 82 82 2025-02-26 18:29:32 82
83 2025-02-26 15:14:26 83 83 2025-02-26 18:29:32 83
84 2025-02-26 15:14:26 84 84 2025-02-26 18:29:32 84
85 2025-02-26 15:14:26 85 85 2025-02-26 18:29:32 85
86 2025-02-26 15:14:26 86 86 2025-02-26 18:29:32 86
87 2025-02-26 15:14:26 87 87 2025-02-26 18:29:32 87
88 2025-02-26 15:14:26 88 88 2025-02-26 18:29:32 88
89 2025-02-26 15:14:26 89 89 2025-02-26 18:29:32 89
90 2025-02-26 15:14:26 90 90 2025-02-26 18:29:32 90
91 2025-02-26 15:14:26 91 91 2025-02-26 18:29:32 91
92 2025-02-26 15:14:26 92 92 2025-02-26 18:29:32 92
93 2025-02-26 15:14:26 93 93 2025-02-26 18:29:32 93
94 2025-02-26 15:14:26 94 94 2025-02-26 18:29:32 94
95 2025-02-26 15:14:26 95 95 2025-02-26 18:29:32 95
96 2025-02-26 15:14:26 96 96 2025-02-26 18:29:32 96
97 2025-02-26 15:14:26 97 97 2025-02-26 18:29:32 97
98 2025-02-26 15:14:26 98 98 2025-02-26 18:29:32 98
99 2025-02-26 15:14:26 99 99 2025-02-26 18:29:32 99
100 2025-02-26 15:14:26 100 100 2025-02-26 18:29:32 100
101 2025-02-26 15:14:26 101 101 2025-02-26 18:29:32 101
102 2025-02-26 15:14:26 102 102 2025-02-26 18:29:32 102
103 2025-02-26 15:14:26 103 103 2025-02-26 18:29:32 103
104 2025-02-26 15:14:26 104 104 2025-02-26 18:29:32 104
105 2025-02-26 15:14:26 105 105 2025-02-26 18:29:32 105
106 2025-02-26 15:14:26 106 106 2025-02-26 18:29:32 106
107 2025-02-26 15:14:26 107 107 2025-02-26 18:29:32 107
108 2025-02-26 15:14:26 108 108 2025-02-26 18:29:32 108
109 2025-02-26 15:14:26 109 109 2025-02-26 18:29:32 109
110 2025-02-26 15:14:26 110 110 2025-02-26 18:29:32 110
111 2025-02-26 15:14:26 111 111 2025-02-26 18:29:32 111
112 2025-02-26 15:14:26 112 112 2025-02-26 18:29:32 112
113 2025-02-26 15:14:26 113 113 2025-02-26 18:29:32 113
114 2025-02-26 15:14:26 114 114 2025-02-26 18:29:32 114
115 2025-02-26 15:14:26 115 115 2025-02-26 18:29:32 115
116 2025-02-26 15:14:26 116 116 2025-02-26 18:29:32 116
117 2025-02-26 15:14:26 117 117 2025-02-26 18:29:32 117
118 2025-02-26 15:14:26 118 118 2025-02-26 18:29:32 118
119 2025-02-26 15:14:26 119 119 2025-02-26 18:29:32 119
120 2025-02-26 15:14:26 120 120 2025-02-26 18:29:32 120
121 2025-02-26 15:14:26 121 121 2025-02-26 18:29:32 121
122 2025-02-26 15:14:26 122 122 2025-02-26 18:29:32 122
123 2025-02-26 15:14:26 123 123 2025-02-26 18:29:32 123
124 2025-02-26 15:14:26 124 124 2025-02-26 18:29:32 124
125 2025-02-26 15:14:26 125 125 2025-02-26 18:29:32 125
126 2025-02-26 15:14:26 126 126 2025-02-26 18:29:32 126
127 2025-02-26 15:14:26 127 127 2025-02-26 18:29:32 127
128 2025-02-26 15:14:26 128 128 2025-02-26 18:29:32 128
129 2025-02-26 15:14:26 129 129 2025-02-26 18:29:32 129
130 2025-02-26 15:14:26 130 130 2025-02-26 18:29:32 130
131 2025-02-26 15:14:26 131 131 2025-02-26 18:29:32 131
132 2025-02-26 15:14:26 132 132 2025-02-26 18:29:32 132
133 2025-02-26 15:14:26 133 133 2025-02-26 18:29:32 133
134 2025-02-26 15:14:26 134 134 2025-02-26 18:29:32 134
135 2025-02-26 15:14:26 135 135 2025-02-26 18:29:32 135
136 2025-02-26 15:14:26 136 136 2025-02-26 18:29:32 136
137 2025-02-26 15:14:26 137 137 2025-02-26 18:29:32 137
138 2025-02-26 15:14:26 138 138 2025-02-26 18:29:32 138
139 2025-02-26 15:14:26 139 139 2025-02-26 18:29:32 139
140 2025-02-26 15:14:26 140 140 2025-02-26 18:29:32 140
141 2025-02-26 15:14:26 141 141 2025-02-26 18:29:32 141
142 2025-02-26 15:14:26 142 142 2025-02-26 18:29:32 142
143 2025-02-26 15:14:26 143 143 2025-02-26 18:29:32 143
144 2025-02-26 15:14:26 144 144 2025-02-26 18:29:32 144
145 2025-02-26 15:14:26 145 145 2025-02-26 18:29:32 145
146 2025-02-26 15:14:26 146 146 2025-02-26 18:29:32 146
147 2025-02-26 15:14:26 147 147 2025-02-26 18:29:32 147
148 2025-02-26 15:14:26 148 148 2025-02-26 18:29:32 148
149 2025-02-26 15:14:26 149 149 2025-02-26 18:29:32 149
150 2025-02-26 15:14:26 150 150 2025-02-26 18:29:32 150
# get_db_comment works
Code
get_db_comment(db = "test_datalibaba", user = "test", server = Sys.getenv(
"server"))
Output
[1] nom_base commentaire
<0 rows> (or 0-length row.names)
# get_schema_comment works
Code
get_schema_comment(schema = "public", db = "test_datalibaba", user = "test",
server = Sys.getenv("server"))
Output
nom_schema commentaire
1 public le schema des tests qui restent !
# get_table_comment works
Code
get_table_comment(table = "test_iris", schema = "public", db = "test_datalibaba",
user = "test", server = Sys.getenv("server"))
Output
nom_schema nom_table commentaire
1 public test_iris NA
# get_cols_comment works
Code
get_cols_comment(table = "test_iris", schema = "public", db = "test_datalibaba",
user = "test", server = Sys.getenv("server"))
Output
nom_schema nom_table nom_col commentaire
1 public test_iris sepal_width libellé de Sepal.Width cc
2 public test_iris petal_length libellé de Petal.Length cc
3 public test_iris species Commentlibaba !
4 public test_iris petal_width libellé de Petal.Width cc
5 public test_iris sepal_length libellé de Sepal.Length cc
# get_table_comments works
Code
get_table_comments(table = "test_iris", schema = "public", db = "test_datalibaba",
user = "test", server = Sys.getenv("server"))
Output
nom_schema nom_table commentaire nom_col
1 public test_iris NA <NA>
2 public test_iris libellé de Sepal.Width cc sepal_width
3 public test_iris libellé de Petal.Length cc petal_length
4 public test_iris Commentlibaba ! species
5 public test_iris libellé de Petal.Width cc petal_width
6 public test_iris libellé de Sepal.Length cc sepal_length
# exporter_table_comments works
Code
exporter_table_comments(table = "retest_iris", schema = "public", db = "test_datalibaba",
user = "test", server = Sys.getenv("server"), fichier = fichier_temp, import = TRUE)
Message
Export du dictionnaire des variables csv 'C:\Users\edouard.morin\AppData\Local\Temp\RtmpSURFXd\test_exporter_table_comments17cb430ee74f1/comment_iris.csv'.
Output
nom_schema nom_table commentaire nom_col
1 public retest_iris <NA> <NA>
2 public retest_iris libellé de Petal.Length cc Petal.Length
3 public retest_iris libellé de Sepal.Width cc Sepal.Width
4 public retest_iris libellé de Species cc Species
5 public retest_iris libellé de Petal.Width cc Petal.Width
6 public retest_iris libellé de Sepal.Length cc Sepal.Length
test_that("get_db_comment works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_snapshot(get_db_comment(db = "test_datalibaba", user = "test", server = Sys.getenv("server")))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("commenter_schema works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_error(commenter_schema(schema = "public", db = "test_datalibaba", user = "test"),
"L'argument comment n\'est pas renseign\u00e9. ")
expect_error(commenter_schema(comment = "un petit schema !", db = "test_datalibaba", user = "test"),
"L\'argument schema n\'est pas renseign\u00e9. ")
expect_null(commenter_schema(comment = "le schema des tests qui restent !", schema = "public", db = "test_datalibaba", user = "test"))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("get_schema_comment works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_error(get_schema_comment(db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"L\'argument schema n\'est pas renseign\u00e9. ")
expect_error(get_schema_comment(schema="titi-test", db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"Il n\'y a pas de schema titi-test dans la base de donn\u00e9es. ")
expect_snapshot(get_schema_comment(schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("commenter_champs works", { test_that("commenter_table works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){ if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432") Sys.setenv(port="5432")
Sys.setenv(server="localhost") Sys.setenv(server="localhost")
Sys.setenv(user_test="runner") Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD")) Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_error(commenter_table(table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
expect_error(commenter_champs(var = "Species", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"), "L'argument comment n\'est pas renseign\u00e9. ")
"L\'argument comment n\'est pas renseign\u00e9. ") expect_error(commenter_table(comment = "la table de test complete", table = "test_iris", db = "test_datalibaba", user = "test"),
expect_error(commenter_champs(comment = "Commentlibaba !", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument var n\'est pas renseign\u00e9. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "Species", table = "test_iris", db = "test_datalibaba", user = "test"),
"L\'argument schema n\'est pas renseign\u00e9. ") "L\'argument schema n\'est pas renseign\u00e9. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "Species", schema = "public", db = "test_datalibaba", user = "test"), expect_error(commenter_table(comment = "la table de test complete", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument table n\'est pas renseign\u00e9. ") "L\'argument table n\'est pas renseign\u00e9. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "Species", table = "test_titi", schema = "public", db = "test_datalibaba", user = "test"), expect_error(commenter_table(comment = "la table de test complete", table = "titi_test", schema = "public", db = "test_datalibaba", user = "test"),
"Il n\'y a pas de table test_titi dans le schema public. ") "Il n\'y a pas de table titi_test dans le schema public. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "titi", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"), expect_message(commenter_table(comment = "la table de test complete", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"Il n\'y a pas de champ titi dans la table test_iris. ") "COMMENT ON TABLE \"public\".\"test_iris\" IS 'la table de test complete")
#expect_snapshot(importer_data(table = "retest_iris", schema = "public", db = "test_datalibaba", user = "test", limit = 4))
}else{ }else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")) print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !') print('warning: connect_to_db - local database postgresql doesnt work !')
......
library(DBI)
library(magrittr)
library(tibble)
library(lubridate)
library(dplyr)
library(glue)
test_that("commenter_champs works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_error(commenter_champs(var = "Species", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument comment n\'est pas renseign\u00e9. ")
expect_error(commenter_champs(comment = "Commentlibaba !", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument var n\'est pas renseign\u00e9. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "Species", table = "test_iris", db = "test_datalibaba", user = "test"),
"L\'argument schema n\'est pas renseign\u00e9. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "Species", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument table n\'est pas renseign\u00e9. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "Species", table = "test_titi", schema = "public", db = "test_datalibaba", user = "test"),
"Il n\'y a pas de table test_titi dans le schema public. ")
expect_error(commenter_champs(comment = "Commentlibaba !", var = "titi", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"Il n\'y a pas de champ titi dans la table test_iris. ")
expect_null(commenter_champs(comment = "Commentlibaba !", var = "Species", table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("post_dico_attr works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
dico_iris <- data.frame(VAR = names(iris), VAR_LIB = paste("libell\u00e9 de", names(iris), " cc"))
expect_error(post_dico_attr(dico = c(1), table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument dico ne correpond pas \u00e0 un dataframe. ")
expect_error(post_dico_attr(dico = data.frame(), table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument dico est vide. ")
expect_error(post_dico_attr(dico = dico_iris %>% mutate(otr="detrop"), table = "test_iris", schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument dico doit comprendre 2 champs : le 1er pour le nom des variables, le second pour leur explicitation. ")
expect_error(post_dico_attr(dico = dico_iris, table = "test_iris", db = "test_datalibaba", user = "test"),
"L\'argument schema n\'est pas renseign\u00e9. ")
expect_error(post_dico_attr(dico = dico_iris, schema = "public", db = "test_datalibaba", user = "test"),
"L\'argument table n\'est pas renseign\u00e9. ")
expect_error(post_dico_attr(dico = dico_iris, table = "titi_test", schema = "public", db = "test_datalibaba", user = "test"),
"Il n\'y a pas de table titi_test dans le schema public. ")
expect_error(post_dico_attr(dico = dico_iris, table = "nc", schema = "public", db = "test_datalibaba", user = "test"),
"Les champs list\u00e9s dans 'dico' ne se retrouvent pas tous dans la table nc. ")
expect_null(post_dico_attr(dico = dico_iris, table = "retest_iris", schema = "public", db = "test_datalibaba", user = "test"))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("get_table_comment works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_error(get_table_comment(table = "test_iris", db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"L\'argument schema n\'est pas renseign\u00e9. ")
expect_error(get_table_comment(schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"L\'argument table n\'est pas renseign\u00e9. ")
expect_error(get_table_comment(table = "titi_test", schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"Il n\'y a pas de table titi_test dans le schema public. ")
expect_snapshot(get_table_comment(table = "test_iris", schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("get_cols_comment works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_error(get_cols_comment(table = "test_iris", db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"L\'argument schema n\'est pas renseign\u00e9. ")
expect_error(get_cols_comment(schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"L\'argument table n\'est pas renseign\u00e9. ")
expect_error(get_cols_comment(table = "titi_test", schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")),
"Il n\'y a pas de table titi_test dans le schema public. ")
expect_snapshot(get_cols_comment(table = "test_iris", schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("get_table_comments works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_snapshot(get_table_comments(table = "test_iris", schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server")))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("transferer_table_comments works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
expect_null(transferer_table_comments(table_sce = "retest_iris", schema_sce = "public", db_sce = "test_datalibaba", table_dest = "test_iris", schema_dest = "public", db_dest = "test_datalibaba", user = "test", server = Sys.getenv("server")))
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
test_that("exporter_table_comments works", {
if(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres")){
Sys.setenv(port="5432")
Sys.setenv(server="localhost")
Sys.setenv(user_test="runner")
Sys.setenv(pwd_test=Sys.getenv("BDD_RUNNER_PWD"))
mon_dossier_temp_aleatoire <- tempfile(pattern = "test_exporter_table_comments")
dir.create(mon_dossier_temp_aleatoire)
fichier_temp <- file.path(mon_dossier_temp_aleatoire, "comment_iris.csv")
expect_snapshot(exporter_table_comments(table = "retest_iris", schema = "public", db = "test_datalibaba", user = "test", server = Sys.getenv("server"), fichier = fichier_temp, import = TRUE))
# On vérifie que le fichier a bien été écrit en sortie
expect_true(file.exists(fichier_temp))
# On vérifie que la taille du fichier est non nulle
expect_true(file.info(fichier_temp)$size > 0)
unlink(mon_dossier_temp_aleatoire, recursive = TRUE)
}else{
print(DBI::dbCanConnect(RPostgres::Postgres(), host="localhost", user="runner", password=Sys.getenv("BDD_RUNNER_PWD"), dbname="postgres"))
print('warning: connect_to_db - local database postgresql doesnt work !')
expect_equal(1,1)
}
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment