postgres implementation of abstract-blob-store
This module is a PostgreSQL implementation of abstract-blob-store and passes its tests.
Right now it doesn't use
bytea, but is saving the binary files in
text format as
It is very experimental, since I have no clue about PostgresSQL. Your can install it
npm install postgres-blob-store.
Right now the usage looks like this, however if possible I would like to get rid of the callback structure in the beginning.
var blob = require'postgres-blob-store'var fs = require'fs'var url = 'postgresql://localhost:5432/blob'var store = bloburl: urlvar file = fscreateReadStream'./index.js'var save = storecreateWriteStreamconsole.log'saved ' + metadatakeyvar readStream = storecreateReadStreammetadatareadStreampipefscreateWriteStream'./index2.js'filepipesave