working example with write and select
This commit is contained in:
@@ -10,15 +10,15 @@ diesel::table! {
|
||||
use diesel::sql_types::*;
|
||||
use super::sql_types::BatteryStatusEnum;
|
||||
|
||||
locations (timestamp) {
|
||||
timestamp -> Int8,
|
||||
latitude -> Numeric,
|
||||
longitude -> Numeric,
|
||||
accuracy -> Numeric,
|
||||
altitude -> Nullable<Numeric>,
|
||||
velocity -> Nullable<Numeric>,
|
||||
battery_level -> Int2,
|
||||
bearing -> Nullable<Numeric>,
|
||||
battery_status -> BatteryStatusEnum,
|
||||
locations (tst) {
|
||||
tst -> Int8,
|
||||
lat -> Numeric,
|
||||
lon -> Numeric,
|
||||
acc -> Numeric,
|
||||
alt -> Nullable<Numeric>,
|
||||
vel -> Nullable<Numeric>,
|
||||
batt -> Int2,
|
||||
bear -> Nullable<Numeric>,
|
||||
bs -> BatteryStatusEnum,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user