(ctx *sql.Context, updater func(*ExtraTableInfo))
| 949 | |
| 950 | // Generate a random sequence name. |
| 951 | uuid, err := uuid.NewRandom() |
| 952 | if err != nil { |
| 953 | return err |
| 954 | } |
| 955 | sequenceName := SequenceNamePrefix + uuid.String() |
| 956 | |
| 957 | // Create a new sequence with the new start value |
| 958 | temporary := t.db.catalog == "temp" |
| 959 | createSequenceStmt, fullSequenceName := getCreateSequence(temporary, sequenceName) |
| 960 | _, err = adapter.Exec(ctx, createSequenceStmt+` START WITH `+strconv.FormatUint(value, 10)) |
| 961 | if err != nil { |
| 962 | return ErrDuckDB.New(err) |
| 963 | } |
| 964 |
no test coverage detected