-
Notifications
You must be signed in to change notification settings - Fork 1
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
queryToken and PgUrl parse changes #15
base: master
Are you sure you want to change the base?
Conversation
…hyphens and all following characters were stripped from the db - Doug Arthur
(sorry about the delay--life got in the way) So I've incorporated the fix for the URL parsing. For the moment, I've decided to include it as-is, since as far as I can tell, the only limitations on PostgreSQL database names are that they start with a letter and are 63 characters or less). The token stuff I'm not sure about. If you look at what I did in pgconsole, I wrap the Connection in a service which instantiates a new result handler for every query execution. This way, the handler instance itself knows what query it is dealing with, and the query token would only be necessary to try to map the handler to any errors / warnings that come up as a result of the query (the PostgreSQL protocol only loosely ties these to the query, so I didn't want to add this as an aspect of the result handler, especially since you may need to deal with errors that are not directly caused by queries). However, it might make sense to provide this information to the handler anyway... Can I ask how your handlers are using the QueryToken, and how you map this back to the original query submitted? |
I think about the queryToken in terms for an AsyncToken request on a The way I'm using the tokens is to track each query, and put them in
queryCompleteHandler(event:QueryCompletionEvent):void {
On Thu, Mar 8, 2012 at 1:58 PM, Maciek Sakrejda
|
Here are the changes I made for passing around queryToken and parsing the db url I needed.