Skip to content

Commit b0a4f07

Browse files
Update licence headers (#546)
1 parent e3e27ee commit b0a4f07

File tree

180 files changed

+246
-393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+246
-393
lines changed

benchmark/main.go

+6-8
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at
108
*
11-
* https://www.apache.org/licenses/LICENSE-2.0
9+
* https://www.apache.org/licenses/LICENSE-2.0
1210
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
1816
*/
1917

2018
// Benchmark tool that uses driver 1.8 as baseline.

neo4j/aliases.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/auth/auth.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/auth/auth_examples_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/auth/auth_testkit.go

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* Copyright (c) "Neo4j"
55
* Neo4j Sweden AB [https://neo4j.com]
66
*
7-
* This file is part of Neo4j.
8-
*
97
* Licensed under the Apache License, Version 2.0 (the "License");
108
* you may not use this file except in compliance with the License.
119
* You may obtain a copy of the License at

neo4j/auth_tokens.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/auth_tokens_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/bookmarks.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/bookmarks_test.go

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (c) "Neo4j"
3+
* Neo4j Sweden AB [https://neo4j.com]
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
118
package neo4j_test
219

320
import (

neo4j/config.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/config/driver.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/config_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/consolelogger.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/db/errors.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/db/errors_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/db/record.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/db/record_example_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/db/record_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/db/summary.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/dbtype/graph.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/dbtype/invalid.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/dbtype/spatial.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/dbtype/spatialtypes_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/dbtype/temporal.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/dbtype/temporaltypes_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/directrouter.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/driver.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at
@@ -51,16 +49,19 @@ type Driver interface {
5149
// token as parameters and can also take optional configuration function(s) as variadic parameters.
5250
//
5351
// In order to connect to a single instance database, you need to pass a URI with scheme 'bolt', 'bolt+s' or 'bolt+ssc'.
52+
//
5453
// driver, err = NewDriver("bolt://db.server:7687", BasicAuth(username, password))
5554
//
5655
// In order to connect to a causal cluster database, you need to pass a URI with scheme 'neo4j', 'neo4j+s' or 'neo4j+ssc'
5756
// and its host part set to be one of the core cluster members.
57+
//
5858
// driver, err = NewDriver("neo4j://core.db.server:7687", BasicAuth(username, password))
5959
//
6060
// You can override default configuration options by providing a configuration function(s)
61+
//
6162
// driver, err = NewDriver(uri, BasicAuth(username, password), function (config *Config) {
62-
// config.MaxConnectionPoolSize = 10
63-
// })
63+
// config.MaxConnectionPoolSize = 10
64+
// })
6465
//
6566
// Deprecated: please use NewDriverWithContext instead. This function will be removed in 6.0.
6667
func NewDriver(target string, auth AuthToken, configurers ...func(*Config)) (Driver, error) {

neo4j/driver_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/driver_with_context.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/driver_with_context_examples_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/driver_with_context_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/driver_with_context_testkit.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
//go:build internal_testkit
2+
13
/*
24
* Copyright (c) "Neo4j"
35
* Neo4j Sweden AB [https://neo4j.com]
46
*
5-
* This file is part of Neo4j.
6-
*
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
@@ -17,8 +17,6 @@
1717
* limitations under the License.
1818
*/
1919

20-
//go:build internal_testkit
21-
2220
package neo4j
2321

2422
import (

neo4j/error.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/error_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/graph.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/graph_example_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

neo4j/graph_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Copyright (c) "Neo4j"
33
* Neo4j Sweden AB [https://neo4j.com]
44
*
5-
* This file is part of Neo4j.
6-
*
75
* Licensed under the Apache License, Version 2.0 (the "License");
86
* you may not use this file except in compliance with the License.
97
* You may obtain a copy of the License at

0 commit comments

Comments
 (0)