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

update PGResult and create PGRow class in the PostgreSQL library, plus quickstart #7

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

Conversation

taplin
Copy link
Collaborator

@taplin taplin commented Aug 30, 2016

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.

for row:PGRow in result! {

//raw description
Log.info(message: "Row description: \(row)")
Copy link

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.

Copy link
Collaborator Author

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.

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