Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sdb (0.02 sec)

  1. prepare_stmt.go

    	// setting db.Stmts to nil to avoid further using
    	db.Stmts = nil
    }
    
    func (sdb *PreparedStmtDB) Reset() {
    	sdb.Mux.Lock()
    	defer sdb.Mux.Unlock()
    
    	for _, stmt := range sdb.Stmts {
    		go func(s *Stmt) {
    			// make sure the stmt must finish preparation first
    			<-s.prepared
    			if s.Stmt != nil {
    				_ = s.Close()
    			}
    		}(stmt)
    	}
    	sdb.Stmts = make(map[string]*Stmt)
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top