You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be really great to have for people who are interested in using a "Postgres-first" style of development, for example with postgraphile
EDIT: I might be interested in implementing this as a first contribution if a contributor thinks that might be a good idea / would be willing to point me in the right direction
In order to start adding support for row level security, you could do somewhat as follows:
create a table with some row level security feature.
examine the output of dbtoyaml for that table and compare it to the output of pg_dump to identify what's missing in the former.
research what PG catalogs hold the data that is missing, e.g., pg_seclabel.
edit code in pyrseas/dbobject, e.g., column.py to fetch (query static methods) the needed data into the internal structures and map it for YAML output (to_map methods). Or if you prefer a TDD route, first write a test for the desired output (e.g., in tests/dbobject/test_column.py).
think about the SQL that would need to be generated by yamltodb when it found the attributes added in step 4 in an input YAML and no corresponding attributes in a target database catalogs (both of these represented in the Pyrseas internal structures).
create test and/or code to generate the SQL.
rinse and repeat for other row level security features.
It seems like it is ignored...
The text was updated successfully, but these errors were encountered: