Removing whats left of db_types references
Finally relying on db library crate for database types
This commit is contained in:
parent
cb69d8b945
commit
700da3695f
@ -1,7 +0,0 @@
|
||||
pub type Integer = i32;
|
||||
|
||||
pub type UBigInt = u64;
|
||||
pub type BigInt = i64;
|
||||
|
||||
pub type VarChar = String;
|
||||
|
@ -10,7 +10,7 @@ use hyper::{Response, Body, StatusCode};
|
||||
|
||||
use chrono::Utc;
|
||||
|
||||
use crate::db_types::{UBigInt, BigInt};
|
||||
use db::{UBigInt, BigInt};
|
||||
use crate::members::{self, Member};
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
@ -35,7 +35,6 @@ mod messages;
|
||||
mod admin;
|
||||
|
||||
mod http_params;
|
||||
mod db_types;
|
||||
mod testing;
|
||||
|
||||
const NO_ERR: u16 = 0;
|
||||
|
@ -5,7 +5,7 @@ use mysql_async::prelude::{params, Queryable};
|
||||
use serde::Serialize;
|
||||
|
||||
use db::{UBigInt, BigInt, Integer, VarChar};
|
||||
use db::member::{STATUS_ONLINE, STATUS_OFFLINE};
|
||||
use db::member::STATUS_ONLINE;
|
||||
use crate::auth;
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
@ -7,7 +7,7 @@ use hyper::{Response, Body, StatusCode};
|
||||
use serde_json::Value;
|
||||
use chrono::Utc;
|
||||
|
||||
use crate::db_types::{UBigInt};
|
||||
use db::UBigInt;
|
||||
|
||||
|
||||
pub async fn insert_message(pool: &Pool, content: &Value, channel_name: &Value, author_id: UBigInt)
|
||||
|
Loading…
Reference in New Issue
Block a user