Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Nations (0.23 sec)

  1. clause/locking.go

    	if locking.Table.Name != "" {
    		builder.WriteString(" OF ")
    		builder.WriteQuoted(locking.Table)
    	}
    
    	if locking.Options != "" {
    		builder.WriteByte(' ')
    		builder.WriteString(locking.Options)
    	}
    }
    
    // MergeClause merge order by clauses
    func (locking Locking) MergeClause(clause *Clause) {
    	clause.Expression = locking
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 773 bytes
    - Viewed (0)
  2. .github/workflows/tests.yml

        runs-on: ${{ matrix.platform }}
    
        steps:
        - name: Set up Go 1.x
          uses: actions/setup-go@v4
          with:
            go-version: ${{ matrix.go }}
    
        - name: Check out code into the Go module directory
          uses: actions/checkout@v4
    
        - name: go mod package cache
          uses: actions/cache@v4
          with:
            path: ~/go/pkg/mod
    Others
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Jan 29 02:34:20 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. migrator/migrator.go

    			}
    
    			createTableSQL = strings.TrimSuffix(createTableSQL, ",")
    
    			createTableSQL += ")"
    
    			if tableOption, ok := m.DB.Get("gorm:table_options"); ok {
    				createTableSQL += fmt.Sprint(tableOption)
    			}
    
    			err = tx.Exec(createTableSQL, values...).Error
    			return err
    		}); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  4. finisher_api.go

    			}
    		}()
    
    		if err = fc(tx); err == nil {
    			panicked = false
    			return tx.Commit().Error
    		}
    	}
    
    	panicked = false
    	return
    }
    
    // Begin begins a transaction with any transaction options opts
    func (db *DB) Begin(opts ...*sql.TxOptions) *DB {
    	var (
    		// clone statement
    		tx  = db.getInstance().Session(&Session{Context: db.Statement.Context, NewDB: db.clone == 1})
    		opt *sql.TxOptions
    		err error
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  5. tests/migrate_test.go

    	const tblComment = "foobar comment"
    
    	type City struct {
    		gorm.Model
    		Name string `gorm:"unique"`
    	}
    
    	DB.Migrator().DropTable(&City{})
    
    	if err := DB.Set("gorm:table_options",
    		fmt.Sprintf("ENGINE InnoDB COMMENT '%s'", tblComment)).AutoMigrate(&City{}); err != nil {
    		t.Fatalf("failed to migrate cities tables, got error: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. .github/workflows/reviewdog.yml

    name: reviewdog
    on: [pull_request]
    jobs:
      golangci-lint:
        name: runner / golangci-lint
        runs-on: ubuntu-latest
        steps:
          - name: Check out code into the Go module directory
            uses: actions/checkout@v4
          - name: golangci-lint
            uses: reviewdog/action-golangci-lint@v2
    
          - name: Setup reviewdog
            uses: reviewdog/action-setup@v1
    
          - name: gofumpt -s with reviewdog
            env:
    Others
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:50:45 GMT 2023
    - 664 bytes
    - Viewed (0)
  7. README.md

    [![test status](https://github.com/go-gorm/gorm/workflows/tests/badge.svg?branch=master "test status")](https://github.com/go-gorm/gorm/actions)
    [![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
    Plain Text
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Nov 07 02:20:06 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. clause/locking_test.go

    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate, Options: clause.LockingOptionsNoWait}},
    			"SELECT * FROM `users` FOR UPDATE NOWAIT", nil,
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate, Options: clause.LockingOptionsSkipLocked}},
    			"SELECT * FROM `users` FOR UPDATE SKIP LOCKED", nil,
    		},
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  9. .github/workflows/labeler.yml

      pull_request:
        types: [opened, edited, reopened]
    
    jobs:
      triage:
        runs-on: ubuntu-latest
        name: Label issues and pull requests
        steps:
          - name: check out
            uses: actions/checkout@v4
    
          - name: labeler
            uses: jinzhu/super-labeler-action@develop
            with:
    Others
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:50:45 GMT 2023
    - 423 bytes
    - Viewed (0)
Back to top