-
-
Notifications
You must be signed in to change notification settings - Fork 143
feat: add additional function create options #131
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Actually, one sec - wouldn't you want to allow setting multiple configs for |
src/lib/PostgresMetaFunctions.ts
Outdated
@@ -82,21 +82,32 @@ export default class PostgresMetaFunctions { | |||
definition, | |||
rettype = 'void', | |||
language = 'sql', | |||
behavior, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can make VOLATILE
the default here instead
src/lib/PostgresMetaFunctions.ts
Outdated
}: { | ||
name: string | ||
schema?: string | ||
args?: string[] | ||
definition: string | ||
rettype?: string | ||
language?: string | ||
behavior?: 'IMMUTABLE' | 'STABLE' | 'VOLATILE' | ||
security_definer?: 'false' | 'true' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this a boolean
instead?
315ae75
to
934a326
Compare
SELECT | ||
oid as id, | ||
(string_to_array(unnest(proconfig), '='))[1] AS param, | ||
string_to_array((string_to_array(unnest(proconfig), '='))[2], ', ') AS values | ||
FROM | ||
pg_proc | ||
) p_config ON p_config.id = p.oid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@soedirgo not sure why the indentation here is so weird. Looks fine on my local:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, looks like some tabs starting from line 27. Not a big deal.
934a326
to
03ac6d0
Compare
🎉 This PR is included in version 0.22.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
feat: add additional function create options
What kind of change does this PR introduce?
feature
What is the new behavior?
Add the following options when creating functions: