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"
|
"time"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
func Query() error {
|
||||||
|
@ -659,7 +659,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
||||||
- `io`
|
- `io`
|
||||||
- `os`
|
- `os`
|
||||||
- `text/tabwriter`
|
- `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:
|
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"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Write line protocol data to InfluxDB
|
// Write line protocol data to InfluxDB
|
||||||
|
|
|
@ -21,7 +21,7 @@ list_code_example: |
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
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:
|
In your terminal, enter the following command to download and install the client library:
|
||||||
|
|
||||||
```sh
|
```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.
|
- [`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"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
func Query() error {
|
||||||
|
@ -234,7 +234,7 @@ import (
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InfluxQL() error {
|
func InfluxQL() error {
|
||||||
|
|
|
@ -257,7 +257,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query(query string, parameters influxdb3.QueryParameters,
|
func Query(query string, parameters influxdb3.QueryParameters,
|
||||||
|
|
|
@ -254,7 +254,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query(query string, parameters influxdb3.QueryParameters) error {
|
func Query(query string, parameters influxdb3.QueryParameters) error {
|
||||||
|
|
|
@ -20,7 +20,7 @@ to write and query data stored in an {{% product-name %}} database.
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go get github.com/InfluxCommunity/influxdb3-go
|
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Importing the package
|
## Importing the package
|
||||||
|
@ -31,7 +31,7 @@ Import the package:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import (
|
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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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.
|
which provides the InfluxDB `influxdb3` Go client library module.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go get github.com/InfluxCommunity/influxdb3-go
|
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- END GO SETUP PROJECT -->
|
<!-- END GO SETUP PROJECT -->
|
||||||
|
@ -228,7 +228,7 @@ points.
|
||||||
"os"
|
"os"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
"github.com/influxdata/line-protocol/v2/lineprotocol"
|
"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"
|
"time"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
func Query() error {
|
||||||
|
@ -604,7 +604,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
||||||
- `io`
|
- `io`
|
||||||
- `os`
|
- `os`
|
||||||
- `text/tabwriter`
|
- `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:
|
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"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Write line protocol data to InfluxDB
|
// Write line protocol data to InfluxDB
|
||||||
|
|
|
@ -21,7 +21,7 @@ list_code_example: |
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
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:
|
In your terminal, enter the following command to download and install the client library:
|
||||||
|
|
||||||
```sh
|
```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.
|
- [`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"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
func Query() error {
|
||||||
|
@ -233,7 +233,7 @@ import (
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InfluxQL() error {
|
func InfluxQL() error {
|
||||||
|
|
|
@ -257,7 +257,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query(query string, parameters influxdb3.QueryParameters,
|
func Query(query string, parameters influxdb3.QueryParameters,
|
||||||
|
|
|
@ -254,7 +254,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query(query string, parameters influxdb3.QueryParameters) error {
|
func Query(query string, parameters influxdb3.QueryParameters) error {
|
||||||
|
|
|
@ -20,7 +20,7 @@ to write and query data stored in an {{% product-name %}} bucket.
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go get github.com/InfluxCommunity/influxdb3-go
|
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Importing the package
|
## Importing the package
|
||||||
|
@ -31,7 +31,7 @@ Import the package:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import (
|
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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
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.
|
which provides the InfluxDB `influxdb3` Go client library module.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go get github.com/InfluxCommunity/influxdb3-go
|
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- END GO SETUP PROJECT -->
|
<!-- END GO SETUP PROJECT -->
|
||||||
|
@ -229,7 +229,7 @@ points.
|
||||||
"os"
|
"os"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
"github.com/influxdata/line-protocol/v2/lineprotocol"
|
"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"
|
"time"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
func Query() error {
|
||||||
|
@ -651,7 +651,7 @@ _If your project's virtual environment is already running, skip to step 3._
|
||||||
- `io`
|
- `io`
|
||||||
- `os`
|
- `os`
|
||||||
- `text/tabwriter`
|
- `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:
|
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"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Write line protocol data to InfluxDB
|
// Write line protocol data to InfluxDB
|
||||||
|
|
|
@ -21,7 +21,7 @@ list_code_example: |
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
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:
|
In your terminal, enter the following command to download and install the client library:
|
||||||
|
|
||||||
```sh
|
```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.
|
- [`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"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query() error {
|
func Query() error {
|
||||||
|
@ -232,7 +232,7 @@ import (
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InfluxQL() error {
|
func InfluxQL() error {
|
||||||
|
|
|
@ -257,7 +257,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query(query string, parameters influxdb3.QueryParameters,
|
func Query(query string, parameters influxdb3.QueryParameters,
|
||||||
|
|
|
@ -254,7 +254,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Query(query string, parameters influxdb3.QueryParameters) error {
|
func Query(query string, parameters influxdb3.QueryParameters) error {
|
||||||
|
|
|
@ -20,7 +20,7 @@ to write and query data stored in an {{% product-name %}} database.
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go get github.com/InfluxCommunity/influxdb3-go
|
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Importing the package
|
## Importing the package
|
||||||
|
@ -31,7 +31,7 @@ Import the package:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import (
|
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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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.
|
which provides the InfluxDB `influxdb3` Go client library module.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go get github.com/InfluxCommunity/influxdb3-go
|
go get github.com/InfluxCommunity/influxdb3-go/v2
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- END GO SETUP PROJECT -->
|
<!-- END GO SETUP PROJECT -->
|
||||||
|
@ -229,7 +229,7 @@ points.
|
||||||
"os"
|
"os"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
"github.com/InfluxCommunity/influxdb3-go/influxdb3/v1"
|
"github.com/InfluxCommunity/influxdb3-go/v2/influxdb3"
|
||||||
"github.com/influxdata/line-protocol/v2/lineprotocol"
|
"github.com/influxdata/line-protocol/v2/lineprotocol"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue