Skip to content

Commit eb73fa8

Browse files
committed
Rename package to neoism.
1 parent 0c1fce0 commit eb73fa8

23 files changed

+46
-46
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
neo4j - Neo4j client for Go
1+
neoism - Neo4j client for Go
22
===========================
33

4-
![Neo4j + Gopher Logo](https://raw.github.com/jmcvetta/neo4j/master/neo4j_gopher.png)
4+
![Neo4j + Gopher Logo](https://raw.github.com/jmcvetta/neoism/master/neoism_gopher.png)
55

6-
Package `neo4j` is a [Go](http://golang.org) client library providing access to
6+
Package `neoism` is a [Go](http://golang.org) client library providing access to
77
the [Neo4j](http://www.neo4j.org) graph database via its REST API.
88

99

@@ -16,24 +16,24 @@ Neo4j Milestone 2.0.0-M03 or greater is required to run the full test suite.
1616

1717
# Documentation
1818

19-
See [Go Walker](http://gowalker.org/github.com/jmcvetta/neo4j) or
20-
[GoDoc](http://godoc.org/github.com/jmcvetta/neo4j) for automatic
19+
See [Go Walker](http://gowalker.org/github.com/jmcvetta/neoism) or
20+
[GoDoc](http://godoc.org/github.com/jmcvetta/neoism) for automatic
2121
documentation.
2222

2323

2424
# Status
2525

26-
[![Build Status](https://travis-ci.org/jmcvetta/neo4j.png?branch=master)](https://travis-ci.org/jmcvetta/neo4j)
27-
[![Build Status](https://drone.io/github.com/jmcvetta/neo4j/status.png)](https://drone.io/github.com/jmcvetta/neo4j/latest)
28-
[![Coverage Status](https://coveralls.io/repos/jmcvetta/neo4j/badge.png?branch=master)](https://coveralls.io/r/jmcvetta/neo4j)
26+
[![Build Status](https://travis-ci.org/jmcvetta/neoism.png?branch=master)](https://travis-ci.org/jmcvetta/neoism)
27+
[![Build Status](https://drone.io/github.com/jmcvetta/neoism/status.png)](https://drone.io/github.com/jmcvetta/neoism/latest)
28+
[![Coverage Status](https://coveralls.io/repos/jmcvetta/neoism/badge.png?branch=master)](https://coveralls.io/r/jmcvetta/neoism)
2929

3030
This driver is fairly complete, and may now be suitable for general use. The
3131
code has an extensive set of integration tests, but little real-world testing.
3232
YMMV; use in production at your own risk.
3333

3434
## Production Note
3535

36-
If you decide to use `neo4j` in a production system, please let me know. All
36+
If you decide to use `neoism` in a production system, please let me know. All
3737
API changes will be made via Pull Request, so it's highly recommended you Watch
3838
the repo Issues. The API is fairly stable, but there are additions and small
3939
changes from time to time.

benchmark_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"log"

cypher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"encoding/json"

cypher_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/bmizerany/assert"

database.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/jmcvetta/restclient"

database_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using defer() for cleanup.
2323
2424
*/
2525

26-
package neo4j
26+
package neoism
2727

2828
import (
2929
"github.com/bmizerany/assert"

doc.go

+16-16
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/*
66
7-
Package neo4j is a client library providing access to the Neo4j graph database
7+
Package neoism is a client library providing access to the Neo4j graph database
88
via its REST API.
99
1010
@@ -14,32 +14,32 @@ Example Usage:
1414
1515
import (
1616
"fmt"
17-
"github.com/jmcvetta/neo4j"
17+
"github.com/jmcvetta/neoism"
1818
)
1919
2020
func main() {
2121
// No error handling in this example - bad, bad, bad!
2222
//
2323
// Connect to the Neo4j server
2424
//
25-
db, _ := neo4j.Connect("http://localhost:7474/db/data")
25+
db, _ := neoism.Connect("http://localhost:7474/db/data")
2626
kirk := "Captain Kirk"
2727
mccoy := "Dr McCoy"
2828
//
2929
// Create a node
3030
//
31-
n0, _ := db.CreateNode(neo4j.Props{"name": kirk})
31+
n0, _ := db.CreateNode(neoism.Props{"name": kirk})
3232
defer n0.Delete() // Deferred clean up
3333
//
3434
// Create a node with a Cypher query
3535
//
3636
res0 := []struct {
37-
N neo4j.Node // Column "n" gets automagically unmarshalled into field N
37+
N neoism.Node // Column "n" gets automagically unmarshalled into field N
3838
}{}
39-
cq0 := neo4j.CypherQuery{
39+
cq0 := neoism.CypherQuery{
4040
Statement: "CREATE (n:Person {name: {name}}) RETURN n",
4141
// Use parameters instead of constructing a query string
42-
Parameters: neo4j.Props{"name": mccoy},
42+
Parameters: neoism.Props{"name": mccoy},
4343
Result: &res0,
4444
}
4545
db.Cypher(&cq0)
@@ -48,7 +48,7 @@ Example Usage:
4848
//
4949
// Create a relationship
5050
//
51-
n1.Relate("reports to", n0.Id(), neo4j.Props{}) // Empty Props{} is okay
51+
n1.Relate("reports to", n0.Id(), neoism.Props{}) // Empty Props{} is okay
5252
//
5353
// Issue a query
5454
//
@@ -57,14 +57,14 @@ Example Usage:
5757
Rel string `json:"type(r)"`
5858
B string `json:"b.name"`
5959
}{}
60-
cq1 := neo4j.CypherQuery{
60+
cq1 := neoism.CypherQuery{
6161
// Use backticks for long statements - Cypher is whitespace indifferent
6262
Statement: `
6363
MATCH (a:Person)-[r]->(b)
6464
WHERE a.name = {name}
6565
RETURN a.name, type(r), b.name
6666
`,
67-
Parameters: neo4j.Props{"name": mccoy},
67+
Parameters: neoism.Props{"name": mccoy},
6868
Result: &res1,
6969
}
7070
db.Cypher(&cq1)
@@ -73,26 +73,26 @@ Example Usage:
7373
//
7474
// Clean up using a transaction
7575
//
76-
qs := []*neo4j.CypherQuery{
77-
&neo4j.CypherQuery{
76+
qs := []*neoism.CypherQuery{
77+
&neoism.CypherQuery{
7878
Statement: `
7979
MATCH (n:Person)-[r]->()
8080
WHERE n.name = {name}
8181
DELETE r
8282
`,
83-
Parameters: neo4j.Props{"name": mccoy},
83+
Parameters: neoism.Props{"name": mccoy},
8484
},
85-
&neo4j.CypherQuery{
85+
&neoism.CypherQuery{
8686
Statement: `
8787
MATCH n:Person
8888
WHERE n.name = {name}
8989
DELETE n
9090
`,
91-
Parameters: neo4j.Props{"name": mccoy},
91+
Parameters: neoism.Props{"name": mccoy},
9292
},
9393
}
9494
tx, _ := db.Begin(qs)
9595
tx.Commit()
9696
}
9797
*/
98-
package neo4j
98+
package neoism

entity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/jmcvetta/restclient"

error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"errors"

legacy_index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/jmcvetta/restclient"

node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/jmcvetta/restclient"

node_index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/jmcvetta/restclient"

node_index_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"fmt"

node_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// The Neo4j Manual section numbers quoted herein refer to the manual for
77
// milestone release 1.8. http://docs.neo4j.org/chunked/1.8/
88

9-
package neo4j
9+
package neoism
1010

1111
import (
1212
"github.com/bmizerany/assert"

rel_index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import "strconv"
88

rel_index_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/bmizerany/assert"

relationship.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/jmcvetta/restclient"

relationship_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/bmizerany/assert"

schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/jmcvetta/restclient"

schema_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"fmt"

transaction.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"errors"

transaction_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"encoding/json"

util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// the terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
33
// Resist intellectual serfdom - the ownership of ideas is akin to slavery.
44

5-
package neo4j
5+
package neoism
66

77
import (
88
"github.com/kr/pretty"

0 commit comments

Comments
 (0)