зеркало из https://github.com/github/vitess-gh.git
vitessdriver: Replace occurrences of v2 with v1 because that's what I actually meant.
This commit is contained in:
Родитель
e7d68b78f7
Коммит
1cac551354
|
@ -37,7 +37,7 @@ func Open(address, tabletType string, timeout time.Duration) (*sql.DB, error) {
|
|||
// OpenShard connects to vtgate running at "address".
|
||||
//
|
||||
// Unlike Open(), all queries will target a specific shard in a given keyspace
|
||||
// ("fallback" mode to vtgate v2).
|
||||
// ("fallback" mode to vtgate v1).
|
||||
//
|
||||
// This mode is recommended when you want to try out Vitess initially because it
|
||||
// does not require defining a VSchema. Just replace the MySQL/MariaDB driver
|
||||
|
@ -148,7 +148,7 @@ type Configuration struct {
|
|||
|
||||
// Keyspace of a specific keyspace and shard to target. Disables vtgate v3.
|
||||
//
|
||||
// If Keyspace and Shard are not empty, vtgate v2 instead of v3 will be used
|
||||
// If Keyspace and Shard are not empty, vtgate v1 instead of v3 will be used
|
||||
// and all requests will be sent only to that particular shard.
|
||||
// This functionality is meant for initial migrations from MySQL/MariaDB to Vitess.
|
||||
Keyspace string
|
||||
|
|
|
@ -153,7 +153,7 @@ func TestExec(t *testing.T) {
|
|||
requestName: "request1",
|
||||
},
|
||||
{
|
||||
desc: "vtgate v2",
|
||||
desc: "vtgate v1",
|
||||
config: Configuration{
|
||||
Protocol: "grpc",
|
||||
Address: testAddress,
|
||||
|
@ -240,7 +240,7 @@ func TestQuery(t *testing.T) {
|
|||
requestName: "request1",
|
||||
},
|
||||
{
|
||||
desc: "non-streaming, vtgate v2",
|
||||
desc: "non-streaming, vtgate v1",
|
||||
config: Configuration{
|
||||
Protocol: "grpc",
|
||||
Address: testAddress,
|
||||
|
@ -263,7 +263,7 @@ func TestQuery(t *testing.T) {
|
|||
requestName: "request1",
|
||||
},
|
||||
{
|
||||
desc: "streaming, vtgate v2",
|
||||
desc: "streaming, vtgate v1",
|
||||
config: Configuration{
|
||||
Protocol: "grpc",
|
||||
Address: testAddress,
|
||||
|
@ -367,7 +367,7 @@ func TestTx(t *testing.T) {
|
|||
requestName: "txRequest",
|
||||
},
|
||||
{
|
||||
desc: "vtgate v2",
|
||||
desc: "vtgate v1",
|
||||
config: Configuration{
|
||||
Protocol: "grpc",
|
||||
Address: testAddress,
|
||||
|
|
Загрузка…
Ссылка в новой задаче