outerbase / sdk

Typescript ORM and automated model generation direct from your database schema. Supports Outerbase features for saved queries & AI.
https://outerbase.com
MIT License
12 stars 5 forks source link

Sync remote queries #30

Open Brayden opened 6 months ago

Brayden commented 6 months ago

Purpose

To enable users to easily, and with type safety, execute their remote saved queries from Outerbase in their own project we want to enable the ability to sync your saved queries to your project. This ensure you only send query ID's of those that actually exist. When they are deleted from your workspace and you re-sync them, then your project should throw errors alerting you.

In usage:

const connection: OuterbaseConnection = new OuterbaseConnection('FAKE_API_KEY')
connection.runSavedQuery(RemoteQuery['My Query Name'])

Tasks

Verify

Before

After