- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 400 for Rollback (0.05 sec)
-
.github/workflows/issue-on-pr-rollback.yml
branches: - master permissions: {} jobs: create-issue-on-pr-rollback: runs-on: ubuntu-latest permissions: contents: read issues: write pull-requests: read if: | github.repository == 'tensorflow/tensorflow' && startsWith(github.event.head_commit.message, 'Rollback of PR #') steps: - name: Checkout repo
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Mon Sep 01 15:40:11 UTC 2025 - 1.5K bytes - Viewed (0) -
tests/transaction_test.go
} if sqlTx, ok := tx.Statement.ConnPool.(gorm.TxCommitter); !ok || sqlTx == nil { t.Fatalf("Should return the underlying sql.Tx") } tx.Rollback() if err := DB.First(&User{}, "name = ?", "transaction").Error; err == nil { t.Fatalf("Should not find record after rollback, but got %v", err) } txDB := DB.Where("fake_name = ?", "fake_name") tx2 := txDB.Session(&gorm.Session{NewDB: true}).Begin()
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 13.3K bytes - Viewed (0) -
.github/workflows/create_issue.js
* limitations under the License. * ============================================================================= */ /** Extracts PR from commit message and creates a GitHub Issue on Rollback of PR Created issue is assigned to original PR owner and reviewer. @param {!object} github enables querying for PR and also create issue using rest endpoint context has the commit message details in the payload
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Mon Oct 18 23:04:59 UTC 2021 - 2.8K bytes - Viewed (0) -
tests/prepared_stmt_test.go
tx := db.Begin() defer func() { if r := recover(); r != nil { tx.Rollback() } }() if err := tx.Error; err != nil { t.Errorf("Failed to start transaction, got error %v\n", err) } if err := tx.Where("name=?", "zzjin").Delete(&User{}).Error; err != nil { tx.Rollback() t.Errorf("Failed to run one transaction, got error %v\n", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Apr 25 08:22:26 UTC 2025 - 8K bytes - Viewed (0) -
finisher_api.go
} else { db.AddError(ErrInvalidTransaction) } return db } // Rollback rollbacks the changes in a transaction func (db *DB) Rollback() *DB { if committer, ok := db.Statement.ConnPool.(TxCommitter); ok && committer != nil { if !reflect.ValueOf(committer).IsNil() { db.AddError(committer.Rollback()) } } else { db.AddError(ErrInvalidTransaction) } return db }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Aug 26 06:24:29 UTC 2025 - 22.9K bytes - Viewed (0) -
cmd/config.go
) const ( minioConfigPrefix = "config" minioConfigBucket = minioMetaBucket + SlashSeparator + minioConfigPrefix kvPrefix = ".kv" // Captures all the previous SetKV operations and allows rollback. minioConfigHistoryPrefix = minioConfigPrefix + "/history" // MinIO configuration file. minioConfigFile = "config.json" )
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.9K bytes - Viewed (0) -
tests/generics_test.go
} if err := tx.Rollback().Error; err != nil { t.Fatalf("failed to rollback transaction: %v", err) } count2, err := gorm.G[User](DB).Where("name like ?", "TestGenericsTransaction%").Count(ctx, "*") if err != nil { t.Fatalf("Count failed: %v", err) } if count2 != 0 { t.Errorf("expected 0 records after rollback, got %d", count2) } }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0) -
tests/connpool_test.go
} if sqlTx, ok := tx.Statement.ConnPool.(gorm.TxCommitter); !ok || sqlTx == nil { t.Fatalf("Should return the underlying sql.Tx") } tx.Rollback() if err = db.First(&User{}, "name = ?", "transaction").Error; err == nil { t.Fatalf("Should not find record after rollback, but got %v", err) } txDB := db.Where("fake_name = ?", "fake_name") tx2 := txDB.Session(&gorm.Session{NewDB: true}).Begin()
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 5.5K bytes - Viewed (0) -
callbacks/transaction.go
} } } func CommitOrRollbackTransaction(db *gorm.DB) { if !db.Config.SkipDefaultTransaction { if _, ok := db.InstanceGet("gorm:started_transaction"); ok { if db.Error != nil { db.Rollback() } else { db.Commit() } db.Statement.ConnPool = db.ConnPool } }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Nov 29 01:33:20 UTC 2021 - 675 bytes - Viewed (0) -
interfaces.go
type ConnPoolBeginner interface { BeginTx(ctx context.Context, opts *sql.TxOptions) (ConnPool, error) } // TxCommitter tx committer type TxCommitter interface { Commit() error Rollback() error } // Tx sql.Tx interface type Tx interface { ConnPool TxCommitter StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt } // Valuer gorm valuer interface type Valuer interface {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sat Aug 19 13:33:31 UTC 2023 - 2.2K bytes - Viewed (0)