MCPcopy Create free account
hub / github.com/apecloud/myduckserver / updateExtraTableInfo

Method updateExtraTableInfo

catalog/table.go:951–961  ·  view source on GitHub ↗
(ctx *sql.Context, updater func(*ExtraTableInfo))

Source from the content-addressed store, hash-verified

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

Callers 3

setAutoIncrementValueMethod · 0.95
CreateCheckMethod · 0.95
DropCheckMethod · 0.95

Calls 4

ExecFunction · 0.92
NewCommentWithMetaFunction · 0.85
FullTableNameFunction · 0.85
EncodeMethod · 0.45

Tested by

no test coverage detected