@mbostock, I want to define table from the buffer that it's possible to use different ways (AWS-SDK etc.) to use AWS, Scaleway, Cloudflare etc. Now I do it like this but this isn't so elegant way so could it possible to add this somehow to the standard client:
class BlobFile extends Blob {
constructor (arrayBuffer,extension) {
super([arrayBuffer]);
Object.defineProperty(this,"name",{value: "d."+extension});
Object.defineProperty(this,"_url",{value: "blob:"});
}
async url(){
return (await this._url) +"";
}
}
DuckDBClient.of({'test': {file:new BlobFile(arrayBuffer,"parquet")}})