susumu.yata
null+****@clear*****
Wed Jun 24 15:27:56 JST 2015
susumu.yata 2015-06-24 15:27:56 +0900 (Wed, 24 Jun 2015) New Revision: f5f6a922d69cd940d4bf8f9912aa330a78a6f3c1 https://github.com/groonga/grngo/commit/f5f6a922d69cd940d4bf8f9912aa330a78a6f3c1 Message: Add comments for the cases that options is nil. GitHub: #8 Modified files: grngo.go Modified: grngo.go (+6 -0) =================================================================== --- grngo.go 2015-06-24 15:26:01 +0900 (e45c4e1) +++ grngo.go 2015-06-24 15:27:56 +0900 (a037779) @@ -390,6 +390,8 @@ func (db *DB) QueryEx(name string, options map[string]string) ( // CreateTable creates a Groonga table and returns a new Table associated with // it. // See http://groonga.org/docs/reference/commands/table_create.html for details. +// +// If options is nil, the default parameters are used. func (db *DB) CreateTable(name string, options *TableOptions) (*Table, error) { if options == nil { options = NewTableOptions() @@ -547,6 +549,8 @@ func (db *DB) InsertRow(tableName string, key interface{}) (inserted bool, id ui // latter is used as the source parameter. // Otherwise, COLUMN_SCALAR is enabled and valueType is used as the type // parameter. +// +// If options is nil, the default parameters are used. func (db *DB) CreateColumn(tableName, columnName string, valueType string, options *ColumnOptions) (*Column, error) { table, err := db.FindTable(tableName) if err != nil { @@ -737,6 +741,8 @@ func (table *Table) InsertRow(key interface{}) (inserted bool, id uint32, err er // and the latter part is used as the source parameter. // Otherwise, COLUMN_SCALAR is enabled and valueType is used as the type // parameter. +// +// If options is nil, the default parameters are used. func (table *Table) CreateColumn(name string, valueType string, options *ColumnOptions) (*Column, error) { if options == nil { options = NewColumnOptions() -------------- next part -------------- HTML����������������������������...Download