diff --git a/README.md b/README.md
index d3821a3a6..8beb15928 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ go get -u github.com/ydb-platform/ydb-go-sdk/v3
* connect to YDB
```golang
-db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
log.Fatal(err)
}
@@ -72,7 +72,7 @@ import (
...
-db, err := sql.Open("ydb", "grpcs://localhost:2135/local")
+db, err := sql.Open("ydb", "grpc://localhost:2136/local")
if err != nil {
log.Fatal(err)
}
diff --git a/SQL.md b/SQL.md
index bc9696596..7dac3b7aa 100644
--- a/SQL.md
+++ b/SQL.md
@@ -39,7 +39,7 @@ import (
func main() {
// init native ydb-go-sdk driver
- nativeDriver, err := ydb.Open(context.TODO(), "grpcs://localhost:2135/local",
+ nativeDriver, err := ydb.Open(context.TODO(), "grpc://localhost:2136/local",
// See many ydb.Option's for configure driver https://pkg.go.dev/github.com/ydb-platform/ydb-go-sdk/v3#Option
)
if err != nil {
@@ -66,7 +66,7 @@ import (
)
func main() {
- db, err := sql.Open("ydb", "grpcs://localhost:2135/local")
+ db, err := sql.Open("ydb", "grpc://localhost:2136/local")
defer db.Close()
}
```
@@ -86,7 +86,7 @@ import (
"github.com/ydb-platform/ydb-go-sdk/v3/balancers"
)
...
-nativeDriver, err := ydb.Open(context.TODO(), "grpcs://localhost:2135/local",
+nativeDriver, err := ydb.Open(context.TODO(), "grpc://localhost:2136/local",
ydb.WithBalancer(
balancers.PreferLocationsWithFallback(
balancers.RandomChoice(), "a", "b",
@@ -338,7 +338,7 @@ err := retry.DoTx(context.TODO(), db, func(ctx context.Context, tx *sql.Tx) erro
## Accessing the native driver from `*sql.DB`
```go
-db, err := sql.Open("ydb", "grpcs://localhost:2135/local")
+db, err := sql.Open("ydb", "grpc://localhost:2136/local")
if err != nil {
t.Fatal(err)
}
diff --git a/SQL_MIGRATION_v2_v3.md b/SQL_MIGRATION_v2_v3.md
index 4d6c63b27..1bb513be5 100644
--- a/SQL_MIGRATION_v2_v3.md
+++ b/SQL_MIGRATION_v2_v3.md
@@ -26,7 +26,7 @@ Second way (making driver from connector) are different in `v2` and `v3`:
- in `v3`:
`ydb.Connector` creates `sql.driver.Connector` from native `YDB` driver, returns two results (`sql.driver..Connector` and error) and exclude some lazy driver initialization.
```go
- nativeDriver, err := ydb.Open(context.TODO(), "grpcs://localhost:2135/local")
+ nativeDriver, err := ydb.Open(context.TODO(), "grpc://localhost:2136/local")
if err != nil {
// fallback on error
}
diff --git a/coordination/example_test.go b/coordination/example_test.go
index c270c6d6e..f1e416294 100644
--- a/coordination/example_test.go
+++ b/coordination/example_test.go
@@ -11,7 +11,7 @@ import (
//nolint:errcheck
func Example() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
diff --git a/discovery/example_test.go b/discovery/example_test.go
index 3e885b379..30ca45b40 100644
--- a/discovery/example_test.go
+++ b/discovery/example_test.go
@@ -9,7 +9,7 @@ import (
func Example_discoverCluster() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
@@ -28,7 +28,7 @@ func Example_discoverCluster() {
func Example_whoAmI() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
diff --git a/example_test.go b/example_test.go
index dfc1599eb..88c194b8b 100644
--- a/example_test.go
+++ b/example_test.go
@@ -17,7 +17,7 @@ import (
func Example_table() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
log.Fatal(err)
}
@@ -58,7 +58,7 @@ func Example_table() {
}
func Example_databaseSQL() {
- db, err := sql.Open("ydb", "grpcs://localhost:2135/local")
+ db, err := sql.Open("ydb", "grpc://localhost:2136/local")
if err != nil {
log.Fatal(err)
}
@@ -84,7 +84,7 @@ func Example_databaseSQL() {
func Example_topic() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed connect: %v", err)
return
@@ -115,7 +115,7 @@ func Example_topic() {
func Example_scripting() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
@@ -158,7 +158,7 @@ func Example_scripting() {
func Example_discovery() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
diff --git a/meta/example_test.go b/meta/example_test.go
index 5d1123bbc..50a5af4ae 100644
--- a/meta/example_test.go
+++ b/meta/example_test.go
@@ -14,7 +14,7 @@ import (
func Example_consumedUnitsCount() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
log.Fatal(err)
}
diff --git a/ratelimiter/example_test.go b/ratelimiter/example_test.go
index a0e589cf7..b64afde4f 100644
--- a/ratelimiter/example_test.go
+++ b/ratelimiter/example_test.go
@@ -11,7 +11,7 @@ import (
func Example() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
diff --git a/scheme/example_test.go b/scheme/example_test.go
index 3e7286ad3..51e562e0a 100644
--- a/scheme/example_test.go
+++ b/scheme/example_test.go
@@ -9,7 +9,7 @@ import (
func Example() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
diff --git a/scripting/example_test.go b/scripting/example_test.go
index 58a1d35b5..b1b6c76e4 100644
--- a/scripting/example_test.go
+++ b/scripting/example_test.go
@@ -12,7 +12,7 @@ import (
func Example_execute() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
@@ -55,7 +55,7 @@ func Example_execute() {
func Example_streamExecute() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
@@ -99,7 +99,7 @@ func Example_streamExecute() {
func Example_explainPlan() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
@@ -123,7 +123,7 @@ func Example_explainPlan() {
func Example_explainValidate() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed to connect: %v", err)
return
diff --git a/table/example_test.go b/table/example_test.go
index 7a92523bc..c064e1a8f 100644
--- a/table/example_test.go
+++ b/table/example_test.go
@@ -16,7 +16,7 @@ import (
func Example_select() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed connect: %v", err)
return
@@ -59,7 +59,7 @@ func Example_select() {
func Example_createTable() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed connect: %v", err)
return
@@ -93,7 +93,7 @@ func Example_createTable() {
func Example_bulkUpsert() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed connect: %v", err)
return
@@ -148,7 +148,7 @@ func Example_bulkUpsert() {
func Example_alterTable() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed connect: %v", err)
return
@@ -183,7 +183,7 @@ func Example_alterTable() {
func Example_lazyTransaction() {
ctx := context.TODO()
- db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+ db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
fmt.Printf("failed connect: %v", err)
return
diff --git a/topic/README.md b/topic/README.md
index 794ae3cd8..2e4c797b9 100644
--- a/topic/README.md
+++ b/topic/README.md
@@ -24,7 +24,7 @@ go get -u github.com/ydb-platform/ydb-go-sdk/v3
## Example Usage
* connect to YDB
```golang
-db, err := ydb.Open(ctx, "grpcs://localhost:2135/local")
+db, err := ydb.Open(ctx, "grpc://localhost:2136/local")
if err != nil {
log.Fatal(err)
}