Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TobiEiss/aranGoDriver
/ functions
Functions
96 in github.com/TobiEiss/aranGoDriver
⨍
Functions
96
◇
Types & classes
15
↓ 23 callers
Method
Query
Query with auth
Session.go:46
↓ 10 callers
Method
ListDBs
databases
Session.go:18
↓ 7 callers
Function
assertTrue
(test bool)
aranGoDriver_test.go:171
↓ 7 callers
Function
failOnError
(err error, msg string)
aranGoDriver_test.go:177
↓ 4 callers
Method
DropDB
(dbname string)
Session.go:20
↓ 3 callers
Method
CreateCollection
(dbname string, collectionName string)
Session.go:23
↓ 3 callers
Method
CreateDB
(dbname string)
Session.go:19
↓ 2 callers
Method
Connect
(username string, password string)
Session.go:8
↓ 2 callers
Method
CreateDocument
(dbname string, collectionName string, object interface{})
Session.go:39
↓ 2 callers
Method
GetCollectionByID
GetCollectionByID search collection by id returns: -> result as map -> error if applicable
Session.go:38
↓ 2 callers
Method
UpdateDocument
UpdateDocument updates an Object
aranGoSession.go:246
↓ 2 callers
Function
findByParam
(session *TestSession, dbname string, keyName string, valueV string)
testSession.go:35
↓ 2 callers
Function
objectToMap
(object interface{})
testSession.go:48
↓ 1 callers
Method
AddAqlFake
(aql string, fake AqlFake)
testSession.go:191
↓ 1 callers
Method
AqlQuery
AqlQuery send a query
aranGoSession.go:213
↓ 1 callers
Method
AqlQuery
AqlQuery returns: result as array-map, error
Session.go:43
↓ 1 callers
Method
CreateCollection
CreateCollection creates a collection
aranGoSession.go:135
↓ 1 callers
Method
CreateDocument
CreateDocument creates a document in a collection in a database
aranGoSession.go:206
↓ 1 callers
Method
CreateEdgeCollection
(dbname string, edgeName string)
Session.go:27
↓ 1 callers
Method
CreateGraph
(dbname string, graphName string, edgeDefinitions []models.EdgeDefinition)
Session.go:30
↓ 1 callers
Method
DB
DB returns a database-model.
framed/FramedConnection.go:15
↓ 1 callers
Method
DropCollection
(dbname string, collectionName string)
Session.go:24
↓ 1 callers
Method
DropGraph
(dbname string, graphName string)
Session.go:32
↓ 1 callers
Function
Find
Find a element in slice index := session.database.Find(func(index int, value string) bool { return value == term })
sliceTricks/stringSlice.go:7
↓ 1 callers
Method
HTTPDo
HTTPDo function runs the HTTP request and processes its response in a new goroutine.
aranGoConnection/aranGoConnection.go:30
↓ 1 callers
Method
ListCollections
(dbname string)
Session.go:22
↓ 1 callers
Method
ListCollections
ListCollections returns an array of all collections in catabase
framed/Database.go:17
↓ 1 callers
Method
ListDBs
()
testSession.go:90
↓ 1 callers
Method
ListGraphs
(dbname string)
Session.go:31
↓ 1 callers
Method
Migrate
(migration ...Migration)
Session.go:48
↓ 1 callers
Method
SetJwtKey
SetJwtKey sets the JWT-Token
aranGoConnection/aranGoConnection.go:25
↓ 1 callers
Method
TruncateCollection
(dbname string, collectionName string)
Session.go:25
↓ 1 callers
Method
UpdateDocument
(dbname string, id string, object interface{})
Session.go:40
↓ 1 callers
Method
Version
()
Session.go:9
↓ 1 callers
Function
waitForConnection
(ctx context.Context, connectFunc func() error)
aranGoDriverDocker/testSessionDocker.go:60
Method
AqlQuery
(typ interface{}, dbname string, query string, count bool, batchSize int)
testSession.go:184
Method
Connect
Connect to arangoDB
aranGoSession.go:35
Method
Connect
Connect test
testSession.go:60
Function
Contains
Contains check if a string is contained in a string slice
sliceTricks/stringSlice.go:17
Method
CreateCollection
(dbname string, collectionName string)
testSession.go:120
Method
CreateCollection
CreateCollection creates a new collection. After that search for the right collection via ListCollections().
framed/Database.go:41
Method
CreateDB
CreateDB creates a new db
aranGoSession.go:119
Method
CreateDB
CreateDB test create a db
testSession.go:106
Method
CreateDB
CreateDB creates a new database
framed/FramedConnection.go:20
Method
CreateDocument
(dbname string, collectionName string, object interface{})
testSession.go:164
Method
CreateEdgeCollection
CreateEdgeCollection creates a edge to DB
aranGoSession.go:144
Method
CreateEdgeCollection
(dbname string, edgeName string)
testSession.go:130
Method
CreateEdgeDocument
(dbname string, edgeName string, from string, to string)
aranGoSession.go:175
Method
CreateEdgeDocument
(dbname string, edgeName string, from string, to string)
Session.go:28
Method
CreateEdgeDocument
(dbname string, edgeName string, from string, to string)
testSession.go:134
Method
CreateGraph
(dbname string, graphName string, edgeDefinitions []models.EdgeDefinition)
aranGoSession.go:153
Method
CreateGraph
(dbname string, graphName string, edgeDefinitions []models.EdgeDefinition)
testSession.go:138
Method
CreateUser
Add a new database user
aranGoSession.go:61
Method
CreateUser
users
Session.go:12
Method
CreateUser
(username string, password string)
testSession.go:74
Method
DropCollection
DropCollection deletes a collection
aranGoSession.go:192
Method
DropCollection
(dbname string, collectionName string)
testSession.go:150
Method
DropDB
DropDB drop a database
aranGoSession.go:128
Method
DropDB
(dbname string)
testSession.go:115
Method
DropDB
DropDB drops the database
framed/FramedConnection.go:26
Method
DropGraph
(dbname string, graphName string)
aranGoSession.go:169
Method
DropGraph
(dbname string, graphName string)
testSession.go:146
Method
DropUser
Delete an existing user
aranGoSession.go:74
Method
DropUser
(username string)
Session.go:13
Method
DropUser
(username string)
testSession.go:78
Method
GetCollectionByID
GetCollectionByID search collection by id
aranGoSession.go:238
Method
GetCollectionByID
(dbname string, id string)
testSession.go:196
Method
GrantCollection
Set the accesslevel for an user on a collection Possible values for level are: rw, ro and none
aranGoSession.go:97
Method
GrantCollection
(dbname string, collectionName string, username string, level string)
Session.go:15
Method
GrantCollection
(dbname string, collectionName string, username string, level string)
testSession.go:86
Method
GrantDB
Set the accesslevel for an user on a database Possible values for level are: rw, ro and none
aranGoSession.go:84
Method
GrantDB
(dbname string, username string, level string)
Session.go:14
Method
GrantDB
(dbname string, username string, level string)
testSession.go:82
Method
ListCollections
(dbname string)
aranGoSession.go:184
Method
ListCollections
(dbname string)
testSession.go:100
Method
ListDBs
ListDBs lists all db's
aranGoSession.go:109
Method
ListGraphs
(dbname string)
aranGoSession.go:163
Method
ListGraphs
(dbname string)
testSession.go:142
Method
Migrate
Migrate migrates a migration
aranGoSession.go:253
Method
Migrate
(migrations ...Migration)
testSession.go:213
Function
NewAranGoConnection
NewAranGoConnection creates a new instance of a AranGoDriver-Connection. Need a host (e.g. "http://localhost:8529/")
aranGoConnection/aranGoConnection.go:20
Function
NewAranGoDriverSession
NewAranGoDriverSession creates a new instance of a AranGoDriver-Session. Need a host (e.g. "http://localhost:8529/")
aranGoSession.go:30
Function
NewFramedConnection
NewFramedConnection creates a new framedConnection which wraps a session.
framed/FramedConnection.go:10
Function
NewTestSession
()
testSession.go:28
Method
Query
(typ interface{}, methode string, route string, body interface{})
aranGoSession.go:49
Method
Query
(typ interface{}, methode string, route string, body interface{})
testSession.go:65
Method
Query
Query queries the "route" with the http-"methode". The typ ist the pointer for your result
aranGoConnection/aranGoConnection.go:51
Function
SetupDockerTest
* SetupDockerTest setups a arangoDB-docker-image, connects a session and return this Session. Also retuns a purge-function to defer. password := "pas
aranGoDriverDocker/testSessionDocker.go:24
Function
TestArangoDBDocker
(t *testing.T)
aranGoDriverDocker/testSessionDocker_test.go:10
Function
TestArangoDBDockerVersion
(t *testing.T)
aranGoDriverDocker/testSessionDocker_test.go:22
Function
TestMain
(t *testing.T)
aranGoDriver_test.go:22
Method
TruncateCollection
TruncateCollection truncate collections
aranGoSession.go:199
Method
TruncateCollection
(dbname string, collectionName string)
testSession.go:159
Method
UpdateDocument
(dbname string, id string, object interface{})
testSession.go:204
Method
Version
Version returns current version
aranGoSession.go:54
Method
Version
Version returns hard-codeed the testDB as Version
testSession.go:70