(ctx context.Context, stmts []string, _ db.ExecuteOptions)
| 228 | } |
| 229 | |
| 230 | func (d *Driver) executeInAutoCommitMode(ctx context.Context, stmts []string, _ db.ExecuteOptions) (int64, error) { |
| 231 | var rowCount int64 |
| 232 | // Execute statements individually in auto-commit mode |
| 233 | for _, stmt := range stmts { |
| 234 | spannerStmt := spanner.NewStatement(stmt) |
| 235 | count, err := d.client.PartitionedUpdate(ctx, spannerStmt) |
| 236 | if err != nil { |
| 237 | return rowCount, err |
| 238 | } |
| 239 | rowCount += count |
| 240 | } |
| 241 | return rowCount, nil |
| 242 | } |
| 243 | |
| 244 | func (d *Driver) creataDatabase(ctx context.Context, createStatement string, extraStatement []string) error { |
| 245 | op, err := d.dbClient.CreateDatabase(ctx, &databasepb.CreateDatabaseRequest{ |
no outgoing calls
no test coverage detected