Skip to content

Commit

Permalink
refactor: rename FlightSQL constant to SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Mar 27, 2024
1 parent 5bbcc4a commit 7c47939
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ Renamed config types and some options.

- initial release of new client version
- write using v2 api
- query using flightSQL
- query using SQL
- query using influxQL
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ err = client.WriteData(context.Background(), data)

### Query

Use FlightSQL to query and print result.
Use SQL to query and print result.

```go
query := `
Expand Down
2 changes: 1 addition & 1 deletion examples/IOx/iox.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func main() {
panic(err)
}

// Prepare FlightSQL query
// Prepare SQL query
query := `
SELECT *
FROM stat
Expand Down
2 changes: 1 addition & 1 deletion influxdb3/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type WriteOptions struct {

// DefaultQueryOptions specifies default query options
var DefaultQueryOptions = QueryOptions{
QueryType: FlightSQL,
QueryType: SQL,
}

// DefaultWriteOptions specifies default write options
Expand Down
2 changes: 1 addition & 1 deletion influxdb3/query_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type QueryType int

// QueryType constants
const (
FlightSQL QueryType = iota
SQL QueryType = iota
InfluxQL
)

Expand Down

0 comments on commit 7c47939

Please sign in to comment.