DBController

Undocumented in source.

Constructors

this
this(string host, ushort port, string dbname)
Undocumented in source.

Members

Functions

addComment
void addComment(BsonObjectID post, Comment comment)
Undocumented in source. Be warned that the author may not have intended to support it.
addPost
BsonObjectID addPost(Post post)
Undocumented in source. Be warned that the author may not have intended to support it.
addUser
BsonObjectID addUser(User user)
Undocumented in source. Be warned that the author may not have intended to support it.
countPostsForCategory
int countPostsForCategory(string[] categories)
Undocumented in source. Be warned that the author may not have intended to support it.
deleteConfig
void deleteConfig(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
deletePost
void deletePost(BsonObjectID id)
Undocumented in source. Be warned that the author may not have intended to support it.
deleteUser
void deleteUser(BsonObjectID id)
Undocumented in source. Be warned that the author may not have intended to support it.
getAllConfigs
Config[] getAllConfigs()
Undocumented in source. Be warned that the author may not have intended to support it.
getAllPosts
void getAllPosts(int nskip, bool delegate(size_t idx, Post post) del)
Undocumented in source. Be warned that the author may not have intended to support it.
getAllUsers
User[string] getAllUsers()
Undocumented in source. Be warned that the author may not have intended to support it.
getConfig
Config getConfig(string name, bool createdefault)
Undocumented in source. Be warned that the author may not have intended to support it.
getPost
Post getPost(BsonObjectID postid)
Undocumented in source. Be warned that the author may not have intended to support it.
getPost
Post getPost(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getPostsForCategory
void getPostsForCategory(string[] categories, int nskip, bool delegate(size_t idx, Post post) del)
Undocumented in source. Be warned that the author may not have intended to support it.
getPublicPostsForCategory
void getPublicPostsForCategory(string[] categories, int nskip, bool delegate(size_t idx, Post post) del)
Undocumented in source. Be warned that the author may not have intended to support it.
getUser
User getUser(BsonObjectID userid)
Undocumented in source. Be warned that the author may not have intended to support it.
getUser
User getUser(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
hasPost
bool hasPost(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
modifyPost
void modifyPost(Post post)
Undocumented in source. Be warned that the author may not have intended to support it.
modifyUser
void modifyUser(User user)
Undocumented in source. Be warned that the author may not have intended to support it.
setConfig
void setConfig(Config cfg)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta