MCPcopy
hub / github.com/tinode/chat / CreateDb

Method CreateDb

server/db/adapter.go:32–32  ·  view source on GitHub ↗

CreateDb creates the database optionally dropping an existing database first.

(reset bool)

Source from the content-addressed store, hash-verified

30 SetMaxResults(val int) error
31 // CreateDb creates the database optionally dropping an existing database first.
32 CreateDb(reset bool) error
33 // UpgradeDb upgrades database to the current adapter version.
34 UpgradeDb() error
35 // Version returns adapter version

Callers 5

InitDbMethod · 0.65
TestCreateDbFunction · 0.65
TestCreateDbFunction · 0.65
TestCreateDbFunction · 0.65
TestCreateDbFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 4

TestCreateDbFunction · 0.52
TestCreateDbFunction · 0.52
TestCreateDbFunction · 0.52
TestCreateDbFunction · 0.52