package safeluck.drive.evaluation.DB.gps;
|
|
import androidx.lifecycle.LiveData;
|
import androidx.room.Dao;
|
import androidx.room.Insert;
|
import androidx.room.OnConflictStrategy;
|
import androidx.room.Query;
|
|
|
/**
|
* MyApplication2
|
* Created by lzw on 2020/1/10. 16:44:57
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
@Dao
|
public interface GpsInfoDao {
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
void insert(GPSInfo gpsInfo);
|
|
|
@Query("SELECT * from gps_info")
|
LiveData<GPSInfo> getGpsInfo();
|
}
|