MCPcopy Index your code
hub / github.com/upper/db / Source

Struct Source

adapter/mongo/database.go:47–59  ·  view source on GitHub ↗

Source represents a MongoDB database.

Source from the content-addressed store, hash-verified

45
46// Source represents a MongoDB database.
47type Source struct {
48 db.Settings
49
50 ctx context.Context
51
52 name string
53 connURL db.ConnectionURL
54 session *mongo.Client // rename to client
55 database *mongo.Database
56 version []int
57 collections map[string]*Collection
58 collectionsMu sync.Mutex
59}
60
61type mongoAdapter struct {
62}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected