Discussion:
[arangodb-google] How to create database with go-driver?
Gerry Weaver
2018-07-19 12:18:10 UTC
Permalink
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
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ewout Prangsma
2018-07-19 12:36:15 UTC
Permalink
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
Post by Gerry Weaver
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
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gerry Weaver
2018-07-19 13:28:00 UTC
Permalink
Hi Ewout,

Perfect!

Thanks,
-G
Post by Ewout Prangsma
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
Post by Gerry Weaver
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
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...