WiseLibs / better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.
MIT License
5.37k stars 394 forks source link

Support binding ArrayBuffers #1048

Open fabiospampinato opened 1 year ago

fabiospampinato commented 1 year ago

It'd be convenient if ArrayBuffers could be bound to statements. Currently only Uint8Arrays and Buffers seem to be supported, but ArrayBuffers could easily be supported too, and some APIs, like fetch, just give you an ArrayBuffer, wrapping it in a Uint8Array requires more than 0 code so it's not as convenient as just using the ArrayBuffer directly.