GithubHelp home page GithubHelp logo

Comments (4)

ntorrey avatar ntorrey commented on April 28, 2024

I was just about to add a feature request for this until I hit the checkbox labeled "I have searched the existing issues"!
This would greatly simplify my life. I've already spent a couple of hours trying to figure out how to download the data file from my fly.io instance of SurrealDB. I suppose each use case will differ in the approach to actually downloading the data, which is why a Surreal SQL statement would make the process simple and consistent for everyone.

from surrealdb.

ntorrey avatar ntorrey commented on April 28, 2024

EDIT: See comment below for a much better way

I couldn't wait any longer for this feature so I just rolled my own!
https://gist.github.com/ntorrey/465210e29dbf0dd9ed274a651d79f2cd

from surrealdb.

ntorrey avatar ntorrey commented on April 28, 2024

@tobiemh Sorry to ping you on this, but just wanted to make sure this feature request is not forgotten! I use Google's firebase functions to automatically make backups of my database to firebase storage (with a custom backup script that basically loops through all the records in my database - not great performance-wise but is fine for my use-case). Since they are run from a node environment it sure would be useful if I could actually retrieve the export file via the JavaScript library. I suppose this would be useful for others too who are looking for similar functionality? Or maybe @kearfy would be the one to ask about the js library? Thanks!

from surrealdb.

ntorrey avatar ntorrey commented on April 28, 2024

Silly me - this functionality is already possible for me using the /export and /import REST endpoints! Not sure why I didn't think of this before.
In any case, I think this feature would still be useful.
If anyone else is using firebase functions and wants to know how I scheduled regular backups and got imports working, just ping me.

from surrealdb.

Related Issues (20)

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.