Groups
Groups
Sign in
Groups
Groups
ArangoDB
Conversations
Labels
About
Send feedback
Help
How to create database with go-driver?
36 views
Skip to first unread message
Gerry Weaver
unread,
Jul 19, 2018, 8:18:10 AM
7/19/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ArangoDB
Hello All,
I'm just learning go and don't understand how to create a database by looking at the docs. Any help would be greatly appreciated.
Thanks,
-G
Ewout Prangsma
unread,
Jul 19, 2018, 8:36:16 AM
7/19/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ArangoDB
hi Gerry,
To create a database, use a statement like this
ctx := context.Background()
db, err := theClient.CreateDatabase(ctx, "yourNewDatabase", nil)
The last argument can be used to pass specific options. See
https://godoc.org/github.com/arangodb/go-driver#CreateDatabaseOptions
Regards
Ewout
Op donderdag 19 juli 2018 14:18:10 UTC+2 schreef Gerry Weaver:
Gerry Weaver
unread,
Jul 19, 2018, 9:28:00 AM
7/19/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ArangoDB
Hi Ewout,
Perfect!
Thanks,
-G
Reply all
Reply to author
Forward
0 new messages