Skip to content
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

Importing a node module and using it on trigger function #5

Open
celso-alexandre opened this issue Dec 27, 2022 · 0 comments
Open

Importing a node module and using it on trigger function #5

celso-alexandre opened this issue Dec 27, 2022 · 0 comments

Comments

@celso-alexandre
Copy link

I've reached your project shortly after knowing that plv8 exists and it was possible to write postgres functions in javascript, which is awesome.

I'm trying to setup a trigger that verifies the signature of a record just inserted/updated using a public key. As I'm using AWS RDS and it does not like to allow unsecure extensions, I've found that if I could import the "createVerify" function from "crypto" module, it would be enough to solve it without much more trouble.

I know that this library is not intended solve this exact problem, but do you think it's possible to import "createVerify" inside a postgres function? (I guess that it's not possible to create a trigger using this lib)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant