mirror of
https://github.com/OMGeeky/twitch_backup.local_db.git
synced 2025-12-26 17:02:39 +01:00
add public usages and prelude etc.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "local-db"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.2
|
||||
|
||||
pub use super::users::Entity as Users;
|
||||
pub use super::video_upload::Entity as VideoUpload;
|
||||
pub use super::videos::Entity as Videos;
|
||||
pub use super::status::Status;
|
||||
pub use super::users::{
|
||||
Column as UsersColumn, Entity as Users, Model as UsersModel, Relation as UsersRelation,
|
||||
};
|
||||
pub use super::video_upload::{
|
||||
Column as VideoUploadColumn, Entity as VideoUpload, Model as VideoUploadModel,
|
||||
Relation as VideoUploadRelation,
|
||||
};
|
||||
pub use super::videos::{
|
||||
Column as VideosColumn, Entity as Videos, Model as VideosModel, Relation as VideosRelation,
|
||||
};
|
||||
|
||||
@@ -15,6 +15,7 @@ use tracing::{info, instrument};
|
||||
|
||||
pub mod entities;
|
||||
mod migrator;
|
||||
pub mod prelude;
|
||||
pub mod re_exports;
|
||||
|
||||
pub const DATABASE_URL: &str = "sqlite:./data.db?mode=rwc";
|
||||
|
||||
1
src/prelude.rs
Normal file
1
src/prelude.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub use crate::entities::prelude::*;
|
||||
@@ -1,6 +1,4 @@
|
||||
#[cfg(feature = "re-exports-sea-orm")]
|
||||
pub mod sea_orm {
|
||||
pub mod errors {
|
||||
pub use sea_orm::error::DbErr;
|
||||
}
|
||||
pub use sea_orm::*;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user