db, add core user functionality and tests; db mod
Adds all the basic user functions, and tests for them. This is also intializes the DB Module, which will have more things in it
This commit is contained in:
parent
b30eefd516
commit
99321e9a5d
4 changed files with 185 additions and 0 deletions
11
koucha/src/db.rs
Normal file
11
koucha/src/db.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
mod user;
|
||||
pub use user::User;
|
||||
|
||||
macro_rules! define_key {
|
||||
($name:ident) => {
|
||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
pub struct $name(i64);
|
||||
};
|
||||
}
|
||||
|
||||
define_key!(UserKey);
|
||||
Loading…
Add table
Add a link
Reference in a new issue