Comments (4)
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.
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.
@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.
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)
- Bug: `http` methods access to network target HOT 4
- Bug: multiple count() aggregate views defined on the same table shows wrong count results HOT 2
- Bug: change feed shows CREATE operations as "update" operations on the change feed HOT 1
- Feature: Timeout for client if server is offline
- Feature: `DELETE` statement `LIMIT` clause support
- Feature: Error code support to differentiate errors
- Feature: drop variables HOT 4
- Bug: Cannot perform addition with '2022-07-03' and '18y' HOT 17
- Bug: `DELETE` gives strange `Cannot perform multiplication` error HOT 2
- Bug: Random record IDs provide less than 128 bits of randomness HOT 1
- Feature: Better EXPLAIN Details and Statistics
- Feature: Improve control flow in SurrealQL by introducing RETURN breaking and block expressions HOT 1
- Add REMOVE TABLE foo IF EXIST HOT 2
- Feature: Limit outgoing connections to certain hosts by Root, NS and DB HOT 3
- Bug: Edge inserted via INSERT cannot be queried with -> HOT 2
- Bug: (Rust Driver) Serializing trait objects using `typetag` crate fails HOT 2
- Bug: non-conforming fields are silently deleted
- Feature: Add more functions for supporting semver strings HOT 1
- Feature: Raise an error when query parameters are missing HOT 1
- Bug: Live query inconsistent behaviour HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surrealdb.