Skip to content

Commit

Permalink
VttabletProcess: MultiQueryTablet()
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Nov 18, 2024
1 parent cf5b006 commit 54a7ad0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions go/test/endtoend/cluster/vttablet_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,16 @@ func (vttablet *VttabletProcess) QueryTablet(query string, keyspace string, useD
return executeQuery(conn, query)
}

// MultiQueryTablet lets you execute a query in this tablet and get the result
func (vttablet *VttabletProcess) MultiQueryTablet(sql string, keyspace string, useDb bool) error {
conn, err := vttablet.TabletConn(keyspace, useDb)
if err != nil {
return err
}
defer conn.Close()
return executeMultiQuery(conn, sql)
}

// SemiSyncExtensionLoaded returns what type of semi-sync extension is loaded
func (vttablet *VttabletProcess) SemiSyncExtensionLoaded() (mysql.SemiSyncType, error) {
conn, err := vttablet.TabletConn("", false)
Expand Down

0 comments on commit 54a7ad0

Please sign in to comment.