aquametalabs / aquameta

Web development platform built entirely in PostgreSQL
GNU General Public License v3.0
1.1k stars 52 forks source link

bundle: stash uncommitted changes #200

Open erichanson opened 5 years ago

erichanson commented 5 years ago

Especially helpful when editing a row in meta.view or meta.function and make code changes that need to be saved but the function or view is not in a running state, so it can't be saved into the live-updating meta...

Stash changes away, something like:

create table bundle.stash (
id uuid ....,
comment text
)

create table bundle.stashed_row (
id uuid ...,
stash_id uuid references stash.id, -- yes?
row_id meta.row_id,
row_fields meta.json, -- json really?  maybe meta.field[]?
comment text -- ?