Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Solender committed Feb 4, 2020
1 parent 509937a commit 5f078f9
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 3 deletions.
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Contributing

When writing code contributing to go-bolt, please first discuss the change you wish to make via issue, or by emailing the maintainers of this repo: [email protected] and [email protected].

Please note we have a code of conduct, please follow it in all your interactions with the project.

## Pull Request Process

1. Ensure that your changes have been properly formatted with go format.
2. Update relevant READMEs and go doc comments.
3. Ensure current tests pass, and add new tests as appropriate.
4. Submit a pull request with your changes.
4 changes: 2 additions & 2 deletions LICENSE → LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 MindStand Technologies
Copyright (c) 2019 Mindstand-Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ 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.
SOFTWARE.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func TestClient(t *testing.T) {
log.SetLevel("trace")
log.Info("opening client")
client, err := NewClient(WithBasicAuth("neo4j", "TZU6xiVZLbe5L5UmZaU5"), WithHostPort("0.0.0.0", 7687))
client, err := NewClient(WithBasicAuth("neo4j", "changeme"), WithHostPort("0.0.0.0", 7687))
if err != nil {
t.Log(err)
t.FailNow()
Expand Down
72 changes: 72 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/mindstand/go-bolt)](https://goreportcard.com/report/github.com/mindstand/go-bolt)
[![Actions Status](https://github.com/mindstand/go-bolt/workflows/Go/badge.svg)](https://github.com/mindstand/go-bolt/actions)
[![GoDoc](https://godoc.org/github.com/mindstand/go-bolt?status.svg)](https://godoc.org/github.com/mindstand/go-bolt)
# Go-Bolt - GoLang Bolt Driver

Implements Neo4j Bolt Protocol Versions 1-4

```
go get -u github.com/mindstand/go-bolt
```

### (Disclaimer) This repository is still a major work in progress

## Features
- Supports bolt protocol versions 1-4
- Supports multi db in bolt protocol v4
- Connection Pooling
- `bolt+routing` for HA clusters
- TLS support

## Current todo's
#### (Issues will be updated)
- Documentation across entire repository
- Unit/integration testing across the entire repository for all protocol versions
- Support for neo4j bookmarks

## Long term goals
- Cypher checks preflight
- Benchmark Testing

## Thanks to:
- [@johnnadratowski](https://github.com/johnnadratowski): for your [original implementation](https://github.com/johnnadratowski/golang-neo4j-bolt-driver) of the bolt driver in go. We used the design as a basis for this driver!

## Current example
This will be changed, this is the main integration test at the moment

```go
client, err := NewClient(WithBasicAuth("neo4j", "changme"), WithHostPort("0.0.0.0", 7687))
if err != nil {
panic(err)
}

driver, err := client.NewDriver()
if err != nil {
panic(err)
}

conn, err := driver.Open(bolt_mode.WriteMode)
if err != nil {
panic(err)
}

rows, err := conn.Query("create (:TestNode{uuid:$id})", map[string]interface{}{
"id": "random_id",
})
if err != nil {
panic(err)
}

all, m, err := rows.All()
log.Tracef("rows: %v, %v, %v", all, m, err)

err = rows.Close()
if err != nil {
panic(err)
}

err = conn.Close()
if err != nil {
panic(err)
}
```

0 comments on commit 5f078f9

Please sign in to comment.