-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathDataFrame.extension.st
More file actions
35 lines (28 loc) · 1.07 KB
/
DataFrame.extension.st
File metadata and controls
35 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Extension { #name : 'DataFrame' }
{ #category : '*DataFrame-IO-Sqlite' }
DataFrame class >> readFromSqliteCursor: aSqliteCursor [
"Convenience shortcut for SQLite3Cursor => DataFrame"
^ self readFrom: aSqliteCursor using: DataFrameSqliteReader new
]
{ #category : '*DataFrame-IO-Sqlite' }
DataFrame >> writeToSqlite: aSqlite3Connection tableName: aString [
| writer |
writer := DataFrameSqliteWriter writeToTable: aString.
self writeTo: aSqlite3Connection using: writer
]
{ #category : '*DataFrame-IO-Sqlite' }
DataFrame >> writeToSqlite: aSqlite3Connection tableName: aString columnMappings: aCollection [
| writer |
writer := DataFrameSqliteWriter
writeToTable: aString
columnMappings: aCollection.
self writeTo: aSqlite3Connection using: writer
]
{ #category : '*DataFrame-IO-Sqlite' }
DataFrame >> writeToSqlite: aSqlite3Connection tableName: aString columnNames: aCollection [
| writer |
writer := DataFrameSqliteWriter
writeToTable: aString
columnMappings: aCollection.
self writeTo: aSqlite3Connection using: writer
]