superfly / corrosion

Gossip-based service discovery (and more) for large distributed systems.
https://superfly.github.io/corrosion/
Apache License 2.0
684 stars 21 forks source link

Custom SQLite functions for API queries/subscriptions #174

Closed pborzenkov closed 6 months ago

pborzenkov commented 6 months ago

This PR introduces a way to insert custom API functions into SQLite connections available to API queries and subscriptions. And implements first such custom function.

The function allows to check whether a JSON object is fully contained inside another JSON object and will be used to match machine metadata with FKS service selector in a subscription.