Skip to content

@sqlrooms/duckdb / createViewFromFile

Function: createViewFromFile()

createViewFromFile(filePath, schema, tableName, file): Promise<{ tableName: string; rowCount: number; }>

Create a view from a file.

Parameters

ParameterTypeDescription
filePathstringThe path to the file to create the view from.
schemastringThe schema to create the view in.
tableNamestringThe name of the table to create.
fileFile | Uint8Array<ArrayBufferLike>The file to create the view from.

Returns

Promise<{ tableName: string; rowCount: number; }>