Permalink
Browse files

updating documentation for 0.3-beta

  • Loading branch information...
1 parent 5dfecf9 commit 20baec9954abeba0c247ce1c9fc1211aa38809a5 @Philio committed Feb 24, 2011
Showing with 15 additions and 3 deletions.
  1. +15 −3 README.markdown
View
18 README.markdown
@@ -200,10 +200,22 @@ Client methods
**Prepare(sql string) (stmt *Statement, err os.Error)** - Initialise and prepare a new statement using the supplied query.
-Result Functions
-----------------
+Result methods
+--------------
-todo
+**Result.FieldCount() uint64** - Get the number of fields in the result set.
+
+**Result.FetchField() *Field** - Get the next field in the result set.
+
+**Result.FetchFields() []*Field** - Get all fields in the result set.
+
+**Result.RowCount() uint64** - Get the number of rows in the result set, works for stored results only, used result always return 0.
+
+**Result.FetchRow() Row** - Get the next row in the result set.
+
+**Result.FetchMap() Map** - Get the next row in the result set and convert to a map with field names as keys.
+
+**Result.FetchRows() []Row** - Get all rows in the result set, works for stored results only, used results always return nil.
Statement Functions

0 comments on commit 20baec9

Please sign in to comment.