MCPcopy
hub / github.com/autobrr/qui / commitImportTx

Function commitImportTx

internal/database/sqlite_to_postgres.go:320–325  ·  view source on GitHub ↗
(ctx context.Context, tx pgx.Tx)

Source from the content-addressed store, hash-verified

318}
319
320func commitImportTx(ctx context.Context, tx pgx.Tx) error {
321 if err := tx.Commit(ctx); err != nil {
322 return fmt.Errorf("commit postgres import: %w", err)
323 }
324 return nil
325}
326
327func buildDryRunReport(ctx context.Context, pool *pgxpool.Pool, tables []string, sqliteCounts map[string]int64) (*SQLiteToPostgresMigrationReport, error) {
328 pgTables, err := listPostgresTables(ctx, pool)

Callers 1

MigrateSQLiteToPostgresFunction · 0.85

Calls 1

CommitMethod · 0.65

Tested by

no test coverage detected