# Functions
NewM returns a new instance of M.
# Structs
FindOptions are options for the find operator in Connection.
M is a struct that adds an _id field and implements from dbInterfaces.Entry: - GetID - SetID - DefaultFindFilters.
# Interfaces
Connection is a abstract interface for a database connection There are 2 main implementations of this: - MongoConnection (For the MongoDB driver) - TestConnection (For a fake temp database).
Entry are the functions required to put/get things in/from the database To implement use:
type User struct { // Adds the _id field and implements the remaining functions from Entry M `bson:",inline"`
Username string }
func (*User) CollectionName() { return "users" }.