Methods
insert :: (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => v -> m (AutoKey v) #
insert_ :: (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => v -> m () #
insertBy :: (PersistEntity v, IsUniqueKey (Key v (Unique u)), PersistBackend m, Conn m ~ Sqlite) => u (UniqueMarker v) -> v -> m (Either (AutoKey v) (AutoKey v)) #
insertByAll :: (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => v -> m (Either (AutoKey v) (AutoKey v)) #
replace :: (PersistEntity v, PrimitivePersistField (Key v BackendSpecific), PersistBackend m, Conn m ~ Sqlite) => Key v BackendSpecific -> v -> m () #
replaceBy :: (PersistEntity v, IsUniqueKey (Key v (Unique u)), PersistBackend m, Conn m ~ Sqlite) => u (UniqueMarker v) -> v -> m () #
select :: forall v (c :: (Type -> Type) -> Type) opts m. (PersistEntity v, EntityConstr v c, HasSelectOptions opts Sqlite (RestrictionHolder v c), PersistBackend m, Conn m ~ Sqlite) => opts -> m [v] #
selectStream :: forall v (c :: (Type -> Type) -> Type) opts m. (PersistEntity v, EntityConstr v c, HasSelectOptions opts Sqlite (RestrictionHolder v c), PersistBackend m, Conn m ~ Sqlite) => opts -> m (RowStream v) #
selectAll :: (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => m [(AutoKey v, v)] #
selectAllStream :: (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => m (RowStream (AutoKey v, v)) #
get :: (PersistEntity v, PrimitivePersistField (Key v BackendSpecific), PersistBackend m, Conn m ~ Sqlite) => Key v BackendSpecific -> m (Maybe v) #
getBy :: forall v (u :: (Type -> Type) -> Type) m. (PersistEntity v, IsUniqueKey (Key v (Unique u)), PersistBackend m, Conn m ~ Sqlite) => Key v (Unique u) -> m (Maybe v) #
update :: forall v (c :: (Type -> Type) -> Type) m. (PersistEntity v, EntityConstr v c, PersistBackend m, Conn m ~ Sqlite) => [Update Sqlite (RestrictionHolder v c)] -> Cond Sqlite (RestrictionHolder v c) -> m () #
delete :: forall v (c :: (Type -> Type) -> Type) m. (PersistEntity v, EntityConstr v c, PersistBackend m, Conn m ~ Sqlite) => Cond Sqlite (RestrictionHolder v c) -> m () #
deleteBy :: (PersistEntity v, PrimitivePersistField (Key v BackendSpecific), PersistBackend m, Conn m ~ Sqlite) => Key v BackendSpecific -> m () #
deleteAll :: (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => v -> m () #
count :: forall v (c :: (Type -> Type) -> Type) m. (PersistEntity v, EntityConstr v c, PersistBackend m, Conn m ~ Sqlite) => Cond Sqlite (RestrictionHolder v c) -> m Int #
countAll :: (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => v -> m Int #
project :: forall v (c :: (Type -> Type) -> Type) p a opts m. (PersistEntity v, EntityConstr v c, Projection' p Sqlite (RestrictionHolder v c) a, HasSelectOptions opts Sqlite (RestrictionHolder v c), PersistBackend m, Conn m ~ Sqlite) => p -> opts -> m [a] #
projectStream :: forall v (c :: (Type -> Type) -> Type) p a opts m. (PersistEntity v, EntityConstr v c, Projection' p Sqlite (RestrictionHolder v c) a, HasSelectOptions opts Sqlite (RestrictionHolder v c), PersistBackend m, Conn m ~ Sqlite) => p -> opts -> m (RowStream a) #
migrate :: forall v (m :: Type -> Type). (PersistEntity v, PersistBackend m, Conn m ~ Sqlite) => v -> Migration m #
executeRaw :: (PersistBackend m, Conn m ~ Sqlite) => Bool -> String -> [PersistValue] -> m () #
queryRaw :: (PersistBackend m, Conn m ~ Sqlite) => Bool -> String -> [PersistValue] -> m (RowStream [PersistValue]) #
insertList :: (PersistField a, PersistBackend m, Conn m ~ Sqlite) => [a] -> m Int64 #
getList :: (PersistField a, PersistBackend m, Conn m ~ Sqlite) => Int64 -> m [a] #