Skip to content

Commit

Permalink
Huebnerr fix copyrights and docs (#69)
Browse files Browse the repository at this point in the history
* update version to 0.1.7

* update version to 0.2.0
  • Loading branch information
huebnerr authored Feb 25, 2020
1 parent 59e1a0a commit 7b6204c
Show file tree
Hide file tree
Showing 25 changed files with 268 additions and 35 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,9 @@ You can run a benchmark and profile it with a command like:
and then explore it with `go tool pprof`. The `-run` part excludes the tests for brevity.

## Acknowledgements

We would like to thank the creators and contributors of the vertica-python library, and members of the Vertica team, for their help in understanding the wire protocol.
* @grzm (Github)
* @watercraft (Github)
* @fbernier (Github)
* @mlh758 (Github) for the awesome work filling in and enhancing the driver in many important ways.
* Tom Wall (Vertica) for the infinite patience and deep knowledge.
* The creators and contributors of the vertica-python library, and members of the Vertica team, for their help in understanding the wire protocol.
2 changes: 1 addition & 1 deletion driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Driver struct{}

const (
driverName string = "vertica-sql-go"
driverVersion string = "0.1.7"
driverVersion string = "0.2.0"
protocolVersion uint32 = 0x00030008
)

Expand Down
2 changes: 1 addition & 1 deletion driver_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package vertigo

// Copyright (c) 2019 Micro Focus or one of its affiliates.
// Copyright (c) 2019-2020 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
7 changes: 4 additions & 3 deletions logger_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package vertigo

// Copyright (c) 2019 Micro Focus or one of its affiliates.
// Copyright (c) 2019-2020 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,12 +40,13 @@ import (

type LogMessage struct {
Prefix string
Name string
Msg string
Name string
Msg string
}
type MyLogger struct {
LastMessage *LogMessage
}

func (l *MyLogger) Write(prefix string, name string, msg string) {
l.LastMessage = &LogMessage{Prefix: prefix, Name: name, Msg: msg}
}
Expand Down
32 changes: 32 additions & 0 deletions msgs/bedatarowmsg_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
package msgs

// Copyright (c) 2020 Micro Focus or one of its affiliates.
//
// Licensed 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.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import (
"bytes"
"encoding/binary"
Expand Down
4 changes: 2 additions & 2 deletions msgs/beinitstdinloadmsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// BEInitSTDINLoadMsg docs
type BEInitSTDINLoadMsg struct {
IsBinary bool
Expand Down
2 changes: 1 addition & 1 deletion msgs/febindmsg.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package msgs

// Copyright (c) 2019 Micro Focus or one of its affiliates.
// Copyright (c) 2019-2020 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions msgs/feclosemsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

type FECloseMsg struct {
TargetType CmdTargetType
TargetName string
Expand Down
4 changes: 2 additions & 2 deletions msgs/fedescribemsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// FEDescribeMsg docs
type FEDescribeMsg struct {
TargetType CmdTargetType
Expand Down
4 changes: 2 additions & 2 deletions msgs/feexecutemsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// FEExecuteMsg docs
type FEExecuteMsg struct {
Portal string
Expand Down
4 changes: 2 additions & 2 deletions msgs/feloaddatamsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// FELoadDataMsg docs
type FELoadDataMsg struct {
Data []byte
Expand Down
4 changes: 2 additions & 2 deletions msgs/feloadfailmsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// FELoadDoneMsg docs
type FELoadFailMsg struct {
Message string
Expand Down
4 changes: 2 additions & 2 deletions msgs/feparsemsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// FEParseMsg docs
type FEParseMsg struct {
PreparedName string
Expand Down
4 changes: 2 additions & 2 deletions msgs/fequerymsg.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// FEQueyMsg docs
type FEQueryMsg struct {
Query string
Expand Down
4 changes: 2 additions & 2 deletions msgs/feverifyloadfiles.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package msgs

import "fmt"

// Copyright (c) 2019 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -34,6 +32,8 @@ import "fmt"
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "fmt"

// FEVerifyLoadFiles docs
type FEVerifyLoadFiles struct {
FileNames []string
Expand Down
24 changes: 21 additions & 3 deletions parse/queryLex_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
package parse

// Copyright (c) 2020 Micro Focus or one of its affiliates.

//
// Licensed 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.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion result.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package vertigo

// Copyright (c) 2019 Micro Focus or one of its affiliates.
// Copyright (c) 2019-2020 Micro Focus or one of its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
32 changes: 32 additions & 0 deletions rowcache/file.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
package rowcache

// Copyright (c) 2020 Micro Focus or one of its affiliates.
//
// Licensed 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.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import (
"bufio"
"encoding/binary"
Expand Down
32 changes: 32 additions & 0 deletions rowcache/file_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
package rowcache

// Copyright (c) 2020 Micro Focus or one of its affiliates.
//
// Licensed 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.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import (
"testing"

Expand Down
Loading

0 comments on commit 7b6204c

Please sign in to comment.