This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | |
xmlns:neo4j="http://www.liquibase.org/xml/ns/dbchangelog-ext" | |
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> | |
<changeSet id="remove-constraints-" author="liquibase-fan"> | |
<neo4j:cypher>CALL apoc.schema.assert({Movie:['tagline'], Movie:['released'], Person:['name'], Movie:['imdbRating'], User:['name'], Movie:['title'], Movie:['year']}, {}, true)</neo4j:cypher> | |
</changeSet> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
func main() { | |
foo2 := foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package container | |
import ( | |
"context" | |
"fmt" | |
"github.com/neo4j/neo4j-go-driver/v4/neo4j" | |
"github.com/testcontainers/testcontainers-go" | |
"github.com/testcontainers/testcontainers-go/wait" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/neo4j/neo4j-go-driver/v4/neo4j" | |
"io" | |
"os" | |
"strings" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/neo4j/neo4j-go-driver/v5/neo4j" | |
"time" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# INPUT | |
versions=('3.5' '4.0' '4.1' '4.2' '4.3') | |
for version in "${versions[@]}"; do | |
./check-query.sh "CALL db.indexes()" "${version}"; | |
done | |
# OUTPUT | |
### Neo4j 3.5 | |
+--------------------------------------------------------------------------------------------------------------+ | |
| description | indexName | tokenNames | properties | state | type | progress | provider | id | failureMessage | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build testing | |
package main | |
import "C" | |
import "time" | |
//export time_zone_offset_seconds | |
func time_zone_offset_seconds(tzName *C.char) C.int { | |
location, err := time.LoadLocation(C.GoString(tzName)) | |
if err != nil { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"github.com/neo4j-examples/golang-neo4j-realworld-example/pkg/users" | |
"github.com/neo4j/neo4j-go-driver/v4/neo4j" | |
. "github.com/onsi/ginkgo" | |
. "github.com/onsi/gomega" | |
"golang.org/x/crypto/bcrypt" | |
"io" | |
) | |
var driver neo4j.Driver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"context" | |
"fmt" | |
"github.com/testcontainers/testcontainers-go" | |
"github.com/testcontainers/testcontainers-go/wait" | |
) | |
func startContainer(ctx context.Context, username, password string) (testcontainers.Container, error) { | |
request := testcontainers.ContainerRequest{ | |
Image: "neo4j", // get latest Neo4j Docker image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
function main() { | |
local neo4j_version="${1}" | |
local data_url="${2}" | |
local local_movies_path | |
local_movies_path=$(download_movies_data "${data_url}") |
NewerOlder