package
postgres implementation of abstract-blob-store
npm install postgres-blob-storeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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 base64
Strings.
It is very experimental, since I have no clue about PostgresSQL. Your can install it
with 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 = blob({url: url})
var file = fs.createReadStream('./index.js')
var save = store.createWriteStream(function (err, metadata) {
console.log('saved ' + metadata.key)
var readStream = store.createReadStream(metadata)
readStream.pipe(fs.createWriteStream('./index2.js'))
Estimated unpacked size across 23 packages.
640.2 kB
Includes dependencies.
6 direct · 5 outdated
^3.4.2
4.1.1
0.0.3
0.2.0
^0.9.0
1.3.5
^0.1.2
1.0.0
^0.1.1
0.1.1
^0.2.4
7.0.0