-
Notifications
You must be signed in to change notification settings - Fork 20
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
update PGResult and create PGRow class in the PostgreSQL library, plus quickstart #7
base: master
Are you sure you want to change the base?
Conversation
update from PerfectlySoft master
Updated for 8-04
…esults and iterable behavior.
update from master
…oluted. Add Tests
…field index, updated subscript code to return just field value for subscript by index
… or row can be accessed multiple times
for row:PGRow in result! { | ||
|
||
//raw description | ||
Log.info(message: "Row description: \(row)") |
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.
Use of unresolved identifier 'Log'
This doesn't compile for me.
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.
hmm, the Log struct is in the PerfectLib, I may not have specified that as an expected dependency. You could use print("Row description: (row)") if you dont want to import PerfectLib. I get so used to having the many Perfect utilities available that I dont work without it.
Updated PGResult to conform to Sequence and IteratorProtocol, created PGRow struct to handle the row based access. Added Tests to cover new functionality.
Also created quickstart examples to illustrate usage.