Merge pull request #5713 from influxdata/release-client3-gov2
docs: update all references to influxdb3-go client library to influxd…pull/5712/head^2
commit
981683d1cb
|
@ -593,7 +593,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
|||
"time"
|
||||
"text/tabwriter"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -659,7 +659,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
|||
- `io`
|
||||
- `os`
|
||||
- `text/tabwriter`
|
||||
- `github.com/InfluxCommunity/influxdb3-go/influxdb3/v1`
|
||||
- `github.com/InfluxCommunity/influxdb3-go/v2/influxdb3`
|
||||
|
||||
2. Defines a `Query()` function that does the following:
|
||||
|
||||
|
|
|
@ -835,7 +835,7 @@ To write data to {{% product-name %}} using Go, use the InfluxDB v3
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
// Write line protocol data to InfluxDB
|
||||
|
|
|
@ -21,7 +21,7 @@ list_code_example: |
|
|||
```go
|
||||
import (
|
||||
"context"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -94,7 +94,7 @@ to install a recent version of the Go programming language for your system.
|
|||
In your terminal, enter the following command to download and install the client library:
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
- [`influxdb3-go`](https://github.com/InfluxCommunity/influxdb3-go) {{< req text="\* " color="magenta" >}}: Provides the `influxdb3` package and also installs the [Apache `arrow` module](https://arrow.apache.org/docs/python/index.html) for working with Arrow data returned from queries.
|
||||
|
@ -139,7 +139,7 @@ import (
|
|||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -234,7 +234,7 @@ import (
|
|||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func InfluxQL() error {
|
||||
|
|
|
@ -257,7 +257,7 @@ import (
|
|||
"os"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query(query string, parameters influxdb3.QueryParameters,
|
||||
|
|
|
@ -254,7 +254,7 @@ import (
|
|||
"os"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query(query string, parameters influxdb3.QueryParameters) error {
|
||||
|
|
|
@ -20,7 +20,7 @@ to write and query data stored in an {{% product-name %}} database.
|
|||
## Installation
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
## Importing the package
|
||||
|
@ -31,7 +31,7 @@ Import the package:
|
|||
|
||||
```go
|
||||
import (
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
```
|
||||
|
||||
|
@ -75,7 +75,7 @@ Initializes and returns a `influxdb3.Client` instance with the following:
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -119,7 +119,7 @@ The following steps set up a Go project using the
|
|||
which provides the InfluxDB `influxdb3` Go client library module.
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
<!-- END GO SETUP PROJECT -->
|
||||
|
@ -228,7 +228,7 @@ points.
|
|||
"os"
|
||||
"fmt"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
"github.com/influxdata/line-protocol/v2/lineprotocol"
|
||||
)
|
||||
|
||||
|
|
|
@ -538,7 +538,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
|||
"time"
|
||||
"text/tabwriter"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -604,7 +604,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
|||
- `io`
|
||||
- `os`
|
||||
- `text/tabwriter`
|
||||
- `github.com/InfluxCommunity/influxdb3-go/influxdb3/v1`
|
||||
- `github.com/InfluxCommunity/influxdb3-go/v2/influxdb3`
|
||||
|
||||
2. Defines a `Query()` function that does the following:
|
||||
|
||||
|
|
|
@ -804,7 +804,7 @@ InfluxDB v3 [influxdb3-go client library package](https://github.com/InfluxCommu
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
// Write line protocol data to InfluxDB
|
||||
|
|
|
@ -21,7 +21,7 @@ list_code_example: |
|
|||
```go
|
||||
import (
|
||||
"context"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -94,7 +94,7 @@ to install a recent version of the Go programming language for your system.
|
|||
In your terminal, enter the following command to download and install the client library:
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
- [`influxdb3-go`](https://github.com/InfluxCommunity/influxdb3-go) {{< req text="\* " color="magenta" >}}: Provides the `influxdb3` package and also installs the [Apache `arrow` module](https://arrow.apache.org/docs/python/index.html) for working with Arrow data returned from queries.
|
||||
|
@ -138,7 +138,7 @@ import (
|
|||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -233,7 +233,7 @@ import (
|
|||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func InfluxQL() error {
|
||||
|
|
|
@ -257,7 +257,7 @@ import (
|
|||
"os"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query(query string, parameters influxdb3.QueryParameters,
|
||||
|
|
|
@ -254,7 +254,7 @@ import (
|
|||
"os"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query(query string, parameters influxdb3.QueryParameters) error {
|
||||
|
|
|
@ -20,7 +20,7 @@ to write and query data stored in an {{% product-name %}} bucket.
|
|||
## Installation
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
## Importing the package
|
||||
|
@ -31,7 +31,7 @@ Import the package:
|
|||
|
||||
```go
|
||||
import (
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
```
|
||||
|
||||
|
@ -75,7 +75,7 @@ Initializes and returns a `influxdb3.Client` instance with the following:
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
|
|
@ -120,7 +120,7 @@ The following steps set up a Go project using the
|
|||
which provides the InfluxDB `influxdb3` Go client library module.
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
<!-- END GO SETUP PROJECT -->
|
||||
|
@ -229,7 +229,7 @@ points.
|
|||
"os"
|
||||
"fmt"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
"github.com/influxdata/line-protocol/v2/lineprotocol"
|
||||
)
|
||||
|
||||
|
|
|
@ -585,7 +585,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
|||
"time"
|
||||
"text/tabwriter"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -651,7 +651,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
|||
- `io`
|
||||
- `os`
|
||||
- `text/tabwriter`
|
||||
- `github.com/InfluxCommunity/influxdb3-go/influxdb3/v1`
|
||||
- `github.com/InfluxCommunity/influxdb3-go/v2/influxdb3`
|
||||
|
||||
2. Defines a `Query()` function that does the following:
|
||||
|
||||
|
|
|
@ -840,7 +840,7 @@ To write data to {{% product-name %}} using Go, use the InfluxDB v3
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
// Write line protocol data to InfluxDB
|
||||
|
|
|
@ -21,7 +21,7 @@ list_code_example: |
|
|||
```go
|
||||
import (
|
||||
"context"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -94,7 +94,7 @@ to install a recent version of the Go programming language for your system.
|
|||
In your terminal, enter the following command to download and install the client library:
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
- [`influxdb3-go`](https://github.com/InfluxCommunity/influxdb3-go) {{< req text="\* " color="magenta" >}}: Provides the `influxdb3` package and also installs the [Apache `arrow` module](https://arrow.apache.org/docs/python/index.html) for working with Arrow data returned from queries.
|
||||
|
@ -137,7 +137,7 @@ import (
|
|||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query() error {
|
||||
|
@ -232,7 +232,7 @@ import (
|
|||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func InfluxQL() error {
|
||||
|
|
|
@ -257,7 +257,7 @@ import (
|
|||
"os"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query(query string, parameters influxdb3.QueryParameters,
|
||||
|
|
|
@ -254,7 +254,7 @@ import (
|
|||
"os"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func Query(query string, parameters influxdb3.QueryParameters) error {
|
||||
|
|
|
@ -20,7 +20,7 @@ to write and query data stored in an {{% product-name %}} database.
|
|||
## Installation
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
## Importing the package
|
||||
|
@ -31,7 +31,7 @@ Import the package:
|
|||
|
||||
```go
|
||||
import (
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
```
|
||||
|
||||
|
@ -75,7 +75,7 @@ Initializes and returns a `influxdb3.Client` instance with the following:
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -120,7 +120,7 @@ The following steps set up a Go project using the
|
|||
which provides the InfluxDB `influxdb3` Go client library module.
|
||||
|
||||
```sh
|
||||
go get github.com/InfluxCommunity/influxdb3-go
|
||||
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||
```
|
||||
|
||||
<!-- END GO SETUP PROJECT -->
|
||||
|
@ -229,7 +229,7 @@ points.
|
|||
"os"
|
||||
"fmt"
|
||||
"time"
|
||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
||||
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||
"github.com/influxdata/line-protocol/v2/lineprotocol"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue