Skip to content

Commit 3b39a6d

Browse files
craig[bot]Vidit Bhat
andcommitted
Merge #146058
146058: drt: add create sequence operations r=nameisbhaskar a=vidit-bhat This PR adds a `CREATE SEQUENCE` operation using the generic SQL operation interface Epic: none Fixes: #138439 Release note: None Co-authored-by: Vidit Bhat <[email protected]>
2 parents abe917e + 57fdb5f commit 3b39a6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/cmd/roachtest/operations/sql_objects.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ func registerCreateSQLOperations(r registry.Registry) {
110110
return fmt.Sprintf("CREATE TABLE %s (id INT PRIMARY KEY, val STRING)", name)
111111
},
112112
},
113+
{
114+
name: "create-sequence",
115+
objectType: "SEQUENCE",
116+
prefix: "roachtest_sequence",
117+
createSQL: func(name string) string {
118+
return fmt.Sprintf("CREATE SEQUENCE %s", name)
119+
},
120+
},
113121
}
114122

115123
for _, obj := range objs {

0 commit comments

Comments
 (0)