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

Prepare SQL from file on application start. New function for using pr… #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

eshubin
Copy link

@eshubin eshubin commented Aug 11, 2015

Prepared SQL functionality.
It introduces new setting to a pool, but is backward-compatible.

@eshubin
Copy link
Author

eshubin commented Aug 11, 2015

If you can make a tag after merging, it would be amazing.

@eshubin eshubin mentioned this pull request Aug 12, 2015
@eshubin
Copy link
Author

eshubin commented Feb 3, 2016

this could be merged after epgsql/epgsql#92

@eshubin
Copy link
Author

eshubin commented Feb 18, 2016

@davidw @seriyps @fishcakez once you have merged epgsql/epgsql#92, can you please check this PR? It prepares sql statements from file on start of pgapp, which later could be used in new epgsql:prepared_query function.

@@ -77,16 +99,29 @@ with_transaction(PoolName, Fun, Timeout) ->
{transaction, Fun}, Timeout)
end, Timeout).


-include_lib("epgsql/include/epgsql.hrl").
-include("worker_args.hrl").
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Includes should be somewhere in module's header (near defines).

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

Successfully merging this pull request may close these issues.

2 participants