Skip to content

Commit

Permalink
chore: refine the connection description for SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicecui committed Aug 30, 2024
1 parent a4a34e3 commit 6d858c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/user-guide/ingest-data/for-iot/grpc-sdks/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ cfg := greptime.NewConfig("127.0.0.1").
// Enable secure connection if your server is secured by TLS
// WithInsecure(false).
// set authentication information
// If the database doesn't require authentication, just leave the username and password empty
WithAuth("username", "password")

cli, _ := greptime.NewClient(cfg)
Expand Down
6 changes: 3 additions & 3 deletions docs/user-guide/ingest-data/for-iot/grpc-sdks/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ For more information, refer to [Automatic Schema Generation](/user-guide/ingest-

## Connect to database

Username and password are always required to connect to GreptimeDB.
For how to set authentication to GreptimeDB, see [Authentication](/user-guide/clients/authentication.md).
Here we set the username and password when using the library to connect to GreptimeDB.
If you have set the [`--user-provider` configuration](/user-guide/clients/authentication.md) when starting GreptimeDB,
you will need to provide a username and password to connect to GreptimeDB.
The following example shows how to set the username and password when using the library to connect to GreptimeDB.

<InjectContent id="ingester-lib-connect" content={props.children}/>

Expand Down

0 comments on commit 6d858c5

Please sign in to comment.