Removing whats left of db_types references

Finally relying on db library crate for database types
This commit is contained in:
shockrah committed 2020-11-07 18:20:34 -08:00
1 parent cb69d8b945
commit 700da3695f
5 files changed
+3 -11

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
pub type Integer = i32;
pub type UBigInt = u64;
pub type BigInt = i64;
pub type VarChar = String;
+1 -1
View File
@@ -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)]
-1
View File
@@ -35,7 +35,6 @@ mod messages;
mod admin;
mod http_params;
mod db_types;
mod testing;
const NO_ERR: u16 = 0;
+1 -1
View File
@@ -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)]
+1 -1
View File
@@ -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)