Skip to content

Instantly share code, notes, and snippets.

@ntorrey
ntorrey / SurrealDB_driver_with_export_and_import
Last active October 2, 2023 21:43
A SurrealDB driver with export and import capability
A (very hacky!) surreal db driver with export/import capability!
I had a lot of fun making this! It's for an angular project I'm working on as a hobby.
I am by no means a professional, so feedback and suggestions are welcome.
Let me know if you have any questions!
After injecting the service:
constructor(private surreal: SurrealService)
You can construct queries like this, returned as an observable: (This is just a simple example)
this.surreal