We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 178bab5 commit 8d90242Copy full SHA for 8d90242
README.md
@@ -144,6 +144,19 @@ df writeToSqlite: conn tableName: 'table'.
144
```st
145
df writeToSqlite: conn tableName: 'table' columnNames: #('col1' 'col2' 'col3').
146
```
147
+#### Mapping (selecting / renaming dataframe columns):
148
+Let's assume:
149
+- CREATE TABLE tbl (a,b,c)
150
+- DataFrame with columns (a,x,c,d)
151
+- We want to write:
152
+ - a to a
153
+ - x to b
154
+ - c to c
155
+ - ignore d
156
+- NB: no mention of column d, order is irrelevant
157
+```st
158
+df writeToSqlite: conn tableName: 'table' columnMappings: { #c. #x -> #b. #a }.
159
+```
160
161
## Documentation and Literature
162
0 commit comments