Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewPreparedStmtDB (0.11 sec)

  1. prepare_stmt.go

    	"errors"
    	"reflect"
    	"sync"
    	"time"
    
    	"gorm.io/gorm/internal/stmt_store"
    )
    
    type PreparedStmtDB struct {
    	Stmts stmt_store.Store
    	Mux   *sync.RWMutex
    	ConnPool
    }
    
    // NewPreparedStmtDB creates and initializes a new instance of PreparedStmtDB.
    //
    // Parameters:
    // - connPool: A connection pool that implements the ConnPool interface, used for managing database connections.
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. gorm.go

    			}
    		}
    	}
    
    	if config.PrepareStmt {
    		preparedStmt := NewPreparedStmtDB(db.ConnPool, config.PrepareStmtMaxSize, config.PrepareStmtTTL)
    		db.cacheStore.Store(preparedStmtDBKey, preparedStmt)
    		db.ConnPool = preparedStmt
    	}
    
    	db.Statement = &Statement{
    		DB:       db,
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top