turu.core¶
turu.core.record.record_to_csv(record_filepath, cursor, *, enable=True, **options)
¶
Records cursor's fetched data to CSV.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
record_filepath
|
Union[str, Path]
|
Path to record file. |
required |
cursor
|
Union[GenericCursor, GenericAsyncCursor]
|
Cursor to record. |
required |
enable
|
Union[str, bool, None]
|
Enable recording. |
True
|
options
|
Unpack[CsvRecorderOptions]
|
Options for CSV recorder. |
{}
|
Source code in turu-core/src/turu/core/record/__init__.py
turu.core.record.CsvRecorderOptions
¶
Options for CSV recorder.