Skip to content

Commit

Permalink
Merge pull request #17 from teramonagi/feature/add_document
Browse files Browse the repository at this point in the history
Updated README
  • Loading branch information
teramonagi committed Mar 12, 2016
2 parents bcedee8 + 332f92b commit f080ddf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ dbReadTable(con, "USArrests")
# You can fetch all results by SQL:
res <- dbSendQuery(con, "SELECT * FROM USArrests")
dbFetch(res)
# ...Or indicate its size of the row.
dbFetch(res, n=3)

# If you want to know the only row size of your query, you can use dbGetRowCount
# Or you can get all result at once by dbGetQuery
dbGetQuery(con, "SELECT * FROM USArrests")
dbGetRowCount(res, "SELECT * FROM USArrests")

# You can get the column information of your query.(not implemented completely)
dbColumnInfo(res)

# Clear the result
dbClearResult(res)
Expand Down

0 comments on commit f080ddf

Please sign in to comment.