This repository was archived by the owner on Jan 22, 2024. It is now read-only.
Correcting some parameters due to a compilation Bug in LLVM CLANG ;; #17
Open
genose wants to merge 21 commits intodjthorpe:devfrom
Open
Correcting some parameters due to a compilation Bug in LLVM CLANG ;; #17genose wants to merge 21 commits intodjthorpe:devfrom
genose wants to merge 21 commits intodjthorpe:devfrom
Conversation
added 2 commits
July 24, 2017 15:56
…OTHER_CFLAGS = "-I/usr/local/include"; Correcting some Typos in program
genose
commented
Jul 27, 2017
Author
genose
left a comment
There was a problem hiding this comment.
review
@Pgconnection+execute :: 79 NSParameterAssert(_callback==nil);
Now you can execute Imbriqued queries and parallel Queries
bool cleared_status NO;
PGQueryObject* query = [PGQuery queryWithString:@"SELECT datname FROM pg_database"];
PGQueryObject* query2 = [PGQuery queryWithString:[NSString stringWithFormat:@"SELECT user FROM %@", NSUserName()]];
PGQueryObject* query_DD = [PGQuery queryWithString:[NSString stringWithFormat:@"SELECT GG FROM %@", NSUserName()]];
NSString* username = NSUserName();
NSString* userpassword = @"pass";
NSString* dbname = NSUserName();
NSURL* urlBDD_test = [NSURL URLWithHost:@"localhost" port: 5432 ssl:NO username:username database:dbname params:nil];
// urlBDD_test = [NSURL URLWithSocketPath:nil port:(NSUInteger)5432 database:nil username:username params:nil];
urlBDD_test = [NSURL URLWithHost:@"localhost" ssl:NO username: username database:dbname params:[NSDictionary dictionaryWithObjectsAndKeys:
@"5432", @"port",
[NSString stringWithFormat:@"%d",20], @"connect_timeout",
userpassword, @"password",
nil] ];
NSLog(@" Start Connection with : %@ : %@", urlBDD_test, urlBDD);
// :: has property :: PGConnection * SQLServ_db = [PGConnection new];
// [SQLServ_db connectWithURL:urlBDD_test usedPassword:&isConnected error:&cnxError];
[((PGConnection*)[self SQLServ_db]) connectWithURL: urlBDD_test whenDone:^(BOOL usedPassword, NSError *errorConnect) {
NSLog(@" SQLServ_db :: .... :");
if(errorConnect) {
NSLog(@" SQLServ_db :: connectWithURL: Error: %@",errorConnect);
//
[[self SQLServ_db] disconnect];
cleared_status = YES;
}else {
NSLog(@" SQLServ_db :: connectWithURL: connected .... : %@",errorConnect);
[[self SQLServ_db] execute:query whenDone:^(PGResult* result, NSError* error) {
NSLog(@" SQLServ_db :: query_1 :: pass ");
NSLog(@" SQLServ_db :: query_1 :: obj execute: result :: %@ ", [result fetchRowAsDictionary]);
if(error) {
NSLog(@" SQLServ_db :: query_1 :: obj execute:error :: %@ :: %@", result, error);
}
[[self SQLServ_db] execute:query_DD whenDone:^(PGResult* result, NSError* error) {
NSLog(@" SQLServ_db :: query_DD :: pass ");
NSLog(@" SQLServ_db :: query_DD :: obj execute: result :: %@ ", [result fetchRowAsDictionary]);
if(error) {
NSLog(@" SQLServ_db :: query_DD :: obj execute:error :: %@ :: %@", result, error);
}
}];
}];
NSLog(@" SQLServ_db :: backmain end :: pass ");
[[self SQLServ_db] execute:query2 whenDone:^(PGResult* result, NSError* error) {
NSLog(@" SQLServ_db :: query_2 :: pass ");
if(result) {
NSLog(@" SQLServ_db :: query_2 :: obj execute: result :: %@ ", [result fetchRowAsDictionary]);
}
if(error) {
NSLog(@" SQLServ_db :: query_2 :: obj execute:error :: %@ :: %@", result, error);
}
}];
}
NSLog(@" SQLServ_db ..... DONE :: .... :");
[[self SQLServ_db] disconnect];
cleared_status = YES;
}];
[NSThread sleepForTimeInterval:6.0];
[[self SQLServ_db] execute:query2 whenDone:^(PGResult* result, NSError* error) {
// if(result) {
NSLog(@" SQLServ_db :: query_LL :: pass ");
NSLog(@" SQLServ_db :: query_LL :: obj execute: result :: %@ ", [result fetchRowAsDictionary]);
// }
if(error) {
NSLog(@" SQLServ_db :: query_LL :: obj execute:error :: %@ :: %@", result, error);
}
[[self SQLServ_db] disconnect];
cleared_status = YES;
}];
NSLog(@" SQLServ_db ..... exit :: .... :");
Performance tunning and connection debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OTHER_CFLAGS = "-I/usr/local/include";
Correcting some Typos in program
Fixed to (Latest SDK) in project configuration, build setting