Coder Social home page Coder Social logo

rethinkdb-regrid's People

Contributors

iderp avatar internalfx avatar waldyrious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rethinkdb-regrid's Issues

Purging deleted files

Is there a way to remove a file, so that the space used for it in the database is reclaimed?

Also, is there a way to control how many revisions should be kept?

Doc inconsistencies / confusions

I'm having a hard time understanding the docs. For example, the text refers to 'id', 'fileId' and 'filename' and it's not clear which should be used in which context. For example, createWriteStream() accepts a filename, but createReadStream() wants an id. If id is different than a filename, then how do I find what is the id of the file that I just wrote?

Also, the docs refer to functions like 'upload' which apparently no longer exist.

Fuse mount for regrid

Hey @internalfx please how possible is to add a fuse mountable point in regrid.
Going through this issue rethinkdb/rethinkdb#2647 . I think there is a possibility of making rethinkdb mountable as fuse filesystem. Please can you add a fuse mount point to it. We are not familiar with nodejs and c-sharp which are the two drivers available now for regrid . But i think with fuse it would be more easier and will adapt to most applications

Horizon support

Hey @internalfx i am just thinking the horizon project might be nice if we could use it with regrid.
Have you tried seeing how you could integrate regrid with horizon. And horizon is backed by rethinkdb, i think one of the important solutions still missing in it is regrid.
Could you take a look and see if it could integrate seamlessly. https://github.com/rethinkdb/horizon

Secondly, what about supporting some of rethinkdb supported api languages like javascript and python, and php could be really nice too.

table 'files' is not being created

Hi,
with the following code the table 'example is not being created in RethinkDB. For testing purposes I changed the table name in your test code and those tables are not being created as well. Any idea ?

Cheers, Mike

var ReGrid = require('rethinkdb-regrid')

var bucket = ReGrid({db: 'example'})

// initBucket creates tables and indexes if they don't exist, returns a promise.
bucket.initBucket().then(function () {
// We are now ready to read and write files

// Watch a filename for changes
bucket.watchFilename('/videos/myVid.mp4').then(function (cursor) {
cursor.each((err, changes) => {
console.log(changes)
})
})

Performance?

This looks like a pretty awesome project. Is there a built in test to measure performance of files?

File Range selection

Hi all
Is it possible to give the readstream (download function) a start/end range to retrieve a chunk of a file like in gridfs (mongodb)?

var fileID = '661ec4ac-2afa-404b-88ca-c566394d07af';
var rangeOptions = { start: 0, end: 28930};
var file = bucket.downloadId(fileID, rangeOptions);

something like this?
Thanks

Thumbnails?

What would be the best way to implement thumbnails? Basically they are derived data that can be created lazily on first read, but then cached.
How to ensure the thumbnail cache remains current, removing the thumbnail on file update or removal? Should there be a cache invalidator that listens to all file changes?

Typescript definitions

It would be great if the project had Typescript definitions.

Otherwise, using this library with TS is a real pain in . . .

Delete always returns false

The commit f6333ce changed the RethinkDB query from a delete() to an update(). The next line return result.deleted === 1 should be updated to return result.replaced === 1 or something like that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.