@urban-toolkit/autk-db / LoadCsvParams
Interface: LoadCsvParams
Defined in: use-cases/load-csv/interfaces.ts:80
Describes the inputs required to load CSV data into DuckDB.
Callers can provide either a remote CSV file URL or an in-memory CSV matrix, with optional geometry creation rules.
Example
const params: LoadCsvParams = {
csvFileUrl: 'https://example.com/parcels.csv',
outputTableName: 'parcels',
geometryColumns: { wktColumnName: 'wkt' },
};Properties
csvFileUrl?
optionalcsvFileUrl?:string
Defined in: use-cases/load-csv/interfaces.ts:82
URL of the CSV file to fetch and load into DuckDB.
csvObject?
optionalcsvObject?:unknown[][]
Defined in: use-cases/load-csv/interfaces.ts:84
In-memory CSV rows to serialize, including the header row as the first entry.
delimiter?
optionaldelimiter?:string
Defined in: use-cases/load-csv/interfaces.ts:88
Field delimiter used by the CSV source. Defaults to , in the use case.
geometryColumns?
optionalgeometryColumns?:CsvGeometryColumns
Defined in: use-cases/load-csv/interfaces.ts:90
Optional geometry strategy used to create a spatial column while loading.
outputTableName
outputTableName:
string
Defined in: use-cases/load-csv/interfaces.ts:86
Name of the output table created inside the target workspace.
workspace?
optionalworkspace?:string
Defined in: use-cases/load-csv/interfaces.ts:92
Optional workspace override used by higher-level callers when qualifying the table name.