Creates a meta table for storing shape subscription information - uses a provided shapeKey to determine whether it should persist things and how to index the persisted shapes.
I started by automatically persisting based on things like the shape definition and the table it syncs into, but like @samwillis probably had already figured out there's complexities in mapping the shape etc that makes it hard to automatically infer how to persist it.
I propose keeping the option undocumented until we get reference counting as well, but for now adding a shapeKey would persist the shape and reset the table naively when needing to refetch.
Creates a meta table for storing shape subscription information - uses a provided
shapeKey
to determine whether it should persist things and how to index the persisted shapes.I started by automatically persisting based on things like the shape definition and the table it syncs into, but like @samwillis probably had already figured out there's complexities in mapping the shape etc that makes it hard to automatically infer how to persist it.
I propose keeping the option undocumented until we get reference counting as well, but for now adding a
shapeKey
would persist the shape and reset the table naively when needing to refetch.