susumu.yata
null+****@clear*****
Tue Jun 30 19:11:13 JST 2015
susumu.yata 2015-06-30 19:11:13 +0900 (Tue, 30 Jun 2015) New Revision: c0b4be929a4553df71b172ec490e56173d7c3d7a https://github.com/groonga/grngo/commit/c0b4be929a4553df71b172ec490e56173d7c3d7a Message: Update a comment for DB.Refresh(). GitHub: #10 Modified files: grngo.go Modified: grngo.go (+8 -2) =================================================================== --- grngo.go 2015-06-30 18:27:39 +0900 (0f6fbd9) +++ grngo.go 2015-06-30 19:11:13 +0900 (3c90167) @@ -328,9 +328,15 @@ func (db *DB) Close() error { return closeGrnCtx(db.ctx) } -// Refresh clears a cache for Table and Column name resolution. +// Refresh clears maps for Table and Column name resolution. // -// Note that Table and Column instances are invalidated. +// If a table or column is renamed or removed, the maps may cause a name +// resolution error. In such a case, you should use Refresh or reopen the +// Groonga database to resolve it. +// +// Also, if you remove a table or column with Send, SendEx, Query, or QueryEx, +// you should call Refresh just before or reopen the database immediately after +// that. func (db *DB) Refresh() error { for _, table := range(db.tables) { for _, column := range(table.columns) { -------------- next part -------------- HTML����������������������������...Download