Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for dialectors (0.22 sec)

  1. gorm.go

    	}
    
    	if config.Dialector != nil {
    		err = config.Dialector.Initialize(db)
    
    		if err != nil {
    			if db, _ := db.DB(); db != nil {
    				_ = db.Close()
    			}
    		}
    
    		if config.TranslateError {
    			if _, ok := db.Dialector.(ErrorTranslator); !ok {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 09 11:29:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. statement.go

    		writer.WriteByte(')')
    	case clause.Expr:
    		v.Build(stmt)
    	case string:
    		stmt.DB.Dialector.QuoteTo(writer, v)
    	case []string:
    		writer.WriteByte('(')
    		for idx, d := range v {
    			if idx > 0 {
    				writer.WriteByte(',')
    			}
    			stmt.DB.Dialector.QuoteTo(writer, d)
    		}
    		writer.WriteByte(')')
    	default:
    		stmt.DB.Dialector.QuoteTo(writer, fmt.Sprint(field))
    	}
    }
    
    // Quote returns quoted value
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. tests/tests_all.sh

    #!/bin/bash -e
    
    dialects=("sqlite" "mysql" "postgres" "sqlserver" "tidb")
    
    if [[ $(pwd) == *"gorm/tests"* ]]; then
      cd ..
    fi
    
    if [ -d tests ]
    then
      cd tests
      go get -u -t ./...
      go mod download
      go mod tidy
      cd ..
    fi
    
    # SqlServer for Mac M1
    if [[ -z $GITHUB_ACTION ]]; then
      if [ -d tests ]
      then
        cd tests
        if [[ $(uname -a) == *" arm64" ]]; then
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Sep 30 03:21:19 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. schema/schema.go

    }
    
    type TablerWithNamer interface {
    	TableName(Namer) string
    }
    
    // Parse get data type from dialector
    func Parse(dest interface{}, cacheStore *sync.Map, namer Namer) (*Schema, error) {
    	return ParseWithSpecialTableName(dest, cacheStore, namer, "")
    }
    
    // ParseWithSpecialTableName get data type from dialector with extra schema table
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. tests/query_test.go

    						if !strings.Contains(resultType, "int") {
    							t.Errorf("invalid data type for %v, got %v %#v", dbName, resultType, first[dbName])
    						}
    					case "Birthday":
    						if !strings.Contains(resultType, "Time") && !(DB.Dialector.Name() == "sqlite" && strings.Contains(resultType, "string")) {
    							t.Errorf("invalid data type for %v, got %v %#v", dbName, resultType, first[dbName])
    						}
    					}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  6. callbacks/query.go

    											vars := onStmt.Vars
    											for idx, v := range vars {
    												bindvar := strings.Builder{}
    												onStmt.Vars = vars[0 : idx+1]
    												db.Dialector.BindVarTo(&bindvar, &onStmt, v)
    												onSQL = strings.Replace(onSQL, bindvar.String(), "?", 1)
    											}
    
    											exprs = append(exprs, clause.Expr{SQL: onSQL, Vars: vars})
    										}
    									}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 10.1K bytes
    - Viewed (1)
  7. finisher_api.go

    			db.AddError(committer.Rollback())
    		}
    	} else {
    		db.AddError(ErrInvalidTransaction)
    	}
    	return db
    }
    
    func (db *DB) SavePoint(name string) *DB {
    	if savePointer, ok := db.Dialector.(SavePointerDialectorInterface); ok {
    		// close prepared statement, because SavePoint not support prepared statement.
    		// e.g. mysql8.0 doc: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html
    		var (
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top