This is an automated email from the ASF dual-hosted git repository.
francischuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite-avatica-go.git
The following commit(s) were added to refs/heads/master by this push:
new ddee4bd Update website for 5.0.0 release
ddee4bd is described below
commit ddee4bd6db525a591fd6a38d9f88b851d1f1545d
Author: Francis Chuang <[email protected]>
AuthorDate: Wed Jul 15 09:43:28 2020 +1000
Update website for 5.0.0 release
---
site/_docs/go_history.md | 2 +-
site/_posts/2019-05-16-release-avatica-go-4.0.0.md | 4 +-
site/_posts/2020-07-16-release-avatica-go-5.0.0.md | 50 ++++++++++++++++++++++
site/develop/avatica-go.md | 5 ---
4 files changed, 53 insertions(+), 8 deletions(-)
diff --git a/site/_docs/go_history.md b/site/_docs/go_history.md
index 68153c1..9d0e191 100644
--- a/site/_docs/go_history.md
+++ b/site/_docs/go_history.md
@@ -28,7 +28,7 @@ For a full list of releases, see
Downloads are available on the
[downloads page]({{ site.baseurl }}/downloads/avatica-go.html).
-## <a
href="https://github.com/apache/calcite-avatica-go/releases/tag/v5.0.0">5.0.0</a>
/ 2020-06-XX
+## <a
href="https://github.com/apache/calcite-avatica-go/releases/tag/v5.0.0">5.0.0</a>
/ 2020-07-16
{: #v5-0-0}
Apache Calcite Avatica Go 5.0.0 is a major release of Avatica Go with a number
of improvements and a breaking change.
diff --git a/site/_posts/2019-05-16-release-avatica-go-4.0.0.md
b/site/_posts/2019-05-16-release-avatica-go-4.0.0.md
index fda039b..d1a1498 100644
--- a/site/_posts/2019-05-16-release-avatica-go-4.0.0.md
+++ b/site/_posts/2019-05-16-release-avatica-go-4.0.0.md
@@ -28,8 +28,8 @@ limitations under the License.
-->
Apache Calcite Avatica Go 4.0.0 is a major release with numerous improvements
and a breaking change for Apache Phoenix.
-As this a a new major version, users of this package will need to upgrade
their import paths to
-`"github.com/apache/calcite-avatica-go/v5"`.
+As this is a new major version, users of this package will need to upgrade
their import paths to
+`"github.com/apache/calcite-avatica-go/v4"`.
**Breaking change for Apache Phoenix
([CALCITE-2763](https://issues.apache.org/jira/browse/CALCITE-2724)):**
In Apache Phoenix, null and empty strings are equivalent. For some background
on why this is the case, see
diff --git a/site/_posts/2020-07-16-release-avatica-go-5.0.0.md
b/site/_posts/2020-07-16-release-avatica-go-5.0.0.md
new file mode 100644
index 0000000..ecd4a70
--- /dev/null
+++ b/site/_posts/2020-07-16-release-avatica-go-5.0.0.md
@@ -0,0 +1,50 @@
+---
+layout: news_item
+date: "2020-07-16 08:30:00 +0000"
+author: francischuang
+version: 5.0.0
+categories: [release]
+tag: v5-0-0
+sha: 0e3f5df
+component: avatica-go
+---
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
+
+Apache Calcite Avatica Go 5.0.0 is a major release with numerous improvements
and a breaking change.
+As this is a new major version, users of this package will need to upgrade
their import paths to
+`"github.com/apache/calcite-avatica-go/v5"`.
+
+Since Go modules have been available since Go 1.11 (3 versions back as of
writing), users of this library should
+install it using Go modules as support for dep has been removed.
+
+This release also introduces the `batching` query string parameter in the DSN,
which allows updates to the server using
+a prepared statement to be batched together and executed once `Close()` is
called on the statement.
+
+**Breaking change for connection metadata
([CALCITE-3248](https://issues.apache.org/jira/browse/CALCITE-3248)):**
+Previously, it is possible to set the HTTP username and password using the
`username` and `password` parameters in the
+query string of the DSN. These parameters were confusing and didn't signal the
intent and effect of the parameters in addition
+to clashing with the `avaticaUser` and `avaticaPassword` parameters. The
`username` and `password` parameters have now been
+removed as CALCITE-3248 implements the [Connector
interface](https://golang.org/pkg/database/sql/driver/#Connector) via the
+`NewConnector()` method, which allows the driver to be instantiated with a
custom HTTP client. Subsequently, it is now
+possible to set up the driver with a custom HTTP client and decorate it with
the `WithDigestAuth()`, `WithBasicAuth()`,
+`WithKerberosAuth()` and `WithAdditionalHeaders()` methods.
+
+The Calcite team recommends users of this package to upgrade to this version,
where practical, as the dependencies being
+used by this package have also been upgraded.
\ No newline at end of file
diff --git a/site/develop/avatica-go.md b/site/develop/avatica-go.md
index ca71b63..8cb7c66 100644
--- a/site/develop/avatica-go.md
+++ b/site/develop/avatica-go.md
@@ -60,11 +60,6 @@ The test suite takes around 4 minutes to run if you run both
the Avatica HSQLDB
### Manual set up
1. Install [Go](https://golang.org/doc/install).
-For Go 1.10 and below, install the dependencies (skip these steps if using Go
1.11 and above):
-1a. Install [dep](https://github.com/golang/dep): `go get -u
github.com/golang/dep/cmd/dep`
-
-1b. Install dependencies by running `dep ensure -v` from the root of the
repository.
-
2. The test suite requires access to an instance of Avatica running HSQLDB and
an instance of Apache Phoenix running the
Phoenix Query Server.