Quick tool to transfer tables by query from 1 surreal instance to another, feedback/contributions welcome
To install dependencies:
bun installTo run:
bun run index.ts
--from 'ws://{{remoteUsername}}:{{remoteOptionlUnsafePasswordButWillBePromptedSecurly}}@{{remote-instance.com:8000}}/?namespace={{remoteNamespace}}&database={{remoteDatabase}}'
--to 'ws://{{otherUsername}}:{{otherOptionlUnsafePasswordButWillBePromptedSecurly}}@{{other-instance.com:8000}}/?namespace={{otherNamespace}}&database={{otherDatabase}}'
--query 'SELECT * FROM cupcakes'
--query 'SELECT * FROM cakecups WHERE !hasBeenEaten'