-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i can't add a function for dbaugment #107
Comments
There is a mailing list (http://pgfoundry.org/mailman/listinfo/pyrseas-general ) to which you can post questions such as this. It's mentioned in the first paragraph of http://pyrseas.readthedocs.org/en/latest/devel.html but it probably belongs in a page for general users. I hope @rhunwicks can see this either here or in the M/L, but if not I'll try to take a closer look tomorrow. |
Greg, if by "injection technique" you mean how to actually update the target database, the example at the bottom of http://pyrseas.readthedocs.org/en/latest/dbaugment.html is basically it, i.e., dbaugment moviesdb film.yaml | yamltodb moviesdb -u The |
no, that's not it, i've got that figured out, thanks! I have had some I have included my schema which declares the basis for my application. I have a declaration for full, which is similar to yours, but i tossed out as an example. first you create a database with: then, you augment the database with but, you still can't use the database until the supporting functions are now you can use the database because the low level functions needed by the I know it is something basic i am missing. this is a lot like makefile -g On Thu, Sep 25, 2014 at 4:20 PM, Joe Abbate notifications@github.com
Greg Fausak |
I'm travelling at the moment and can't look, but I think you can probably augmenter: audit_columns:
columns:
function_templates:
pyrseas.get_session_variable('audit_user', SESSION_USER);
pyrseas.get_session_variable('audit_user', SESSION_USER);
functions:
triggers:
schema fdw_owner: table price_market:
table price_marketproduct:
On Fri, Sep 26, 2014 at 3:42 AM, Greg Fausak notifications@github.com
|
Greg, I assume this has been resolved, but perhaps we should improve our user documentation? |
Leaving this open only to update the documentation for |
@lgfausak Please read https://pyrseas.wordpress.com/2018/09/12/the-future-of-pyrseas-revisited/ . If I understand correctly, you were able to fix your problem by yourself. So, in the spirit of open source, you're the best candidate :-) for writing the documentation (plus, @rhunwicks provided additional details/examples). |
Sorry to open this as an issue, I was hoping to just ask the question on a forum or something but I couldn't find where to post it? Where do user questions and comments go?
I have been experimenting with dbaugment. This is really fantastic. I am able to add my own custom audits using the config.yaml as an example. The only thing I can't make work is exporting the get_session_variable() function. (I am creating my own functions, but this one is a good example). Where does the function definition go in the augment.yaml file? I've attached a work in progress, trying to get any changes to a table NOTIFYied. Perfect for the augment definition. Where to I put my auto.get_session_variable() function so that it comes out in the dbaugment run?
When I run this I get the appropriate code for updating my database, everything except the get_session_variable() function. I realize I can just declare this in my database and be done with it, but, it feels like I am missing the injection technique.
Thanks,
-g
The text was updated successfully, but these errors were encountered: