From 20baec9954abeba0c247ce1c9fc1211aa38809a5 Mon Sep 17 00:00:00 2001 From: Philio Date: Thu, 24 Feb 2011 18:31:44 +0000 Subject: [PATCH] updating documentation for 0.3-beta --- README.markdown | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index 2e8a261..25d192a 100644 --- a/README.markdown +++ b/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