repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/examples/salvo_example/entity/src/post.rs
examples/salvo_example/entity/src/post.rs
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0.0-rc.16 use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; #[sea_orm::model] #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)] #[sea_orm(table_name = "post")] pub struct Model { #[sea_orm(primary_key)] #[...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/examples/salvo_example/migration/src/lib.rs
examples/salvo_example/migration/src/lib.rs
pub use sea_orm_migration::prelude::*; mod m20220120_000001_create_post_table; mod m20220120_000002_seed_posts; pub struct Migrator; #[async_trait::async_trait] impl MigratorTrait for Migrator { fn migrations() -> Vec<Box<dyn MigrationTrait>> { vec![ Box::new(m20220120_000001_create_post_tabl...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/examples/salvo_example/migration/src/m20220120_000002_seed_posts.rs
examples/salvo_example/migration/src/m20220120_000002_seed_posts.rs
use entity::post; use sea_orm::{ActiveModelTrait, ColumnTrait, EntityTrait, QueryFilter, Set}; use sea_orm_migration::prelude::*; #[derive(DeriveMigrationName)] pub struct Migration; #[async_trait::async_trait] impl MigrationTrait for Migration { async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/examples/salvo_example/migration/src/m20220120_000001_create_post_table.rs
examples/salvo_example/migration/src/m20220120_000001_create_post_table.rs
use sea_orm_migration::{prelude::*, schema::*}; #[derive(DeriveMigrationName)] pub struct Migration; #[async_trait::async_trait] impl MigrationTrait for Migration { async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { manager .create_table( Table::create() ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/examples/salvo_example/migration/src/main.rs
examples/salvo_example/migration/src/main.rs
use sea_orm_migration::prelude::*; #[tokio::main] async fn main() { cli::run_cli(migration::Migrator).await; }
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/examples/quickstart/src/main.rs
examples/quickstart/src/main.rs
use log::info; mod user { use sea_orm::entity::prelude::*; #[sea_orm::model] #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "user")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub name: String, #[sea_orm(unique)] ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/lib.rs
sea-orm-codegen/src/lib.rs
mod entity; mod error; mod merge; mod util; pub use entity::*; pub use error::*; pub use merge::*; #[cfg(test)] mod tests_cfg;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/error.rs
sea-orm-codegen/src/error.rs
use std::{error, fmt, io}; #[derive(Debug)] pub enum Error { StdIoError(io::Error), TransformError(String), } impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { Self::StdIoError(e) => write!(f, "{e:?}"), Self::TransformError(e)...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/util.rs
sea-orm-codegen/src/util.rs
pub(crate) fn escape_rust_keyword<T>(string: T) -> String where T: ToString, { let string = string.to_string(); if RUST_KEYWORDS.iter().any(|s| s.eq(&string)) { format!("r#{string}") } else if RUST_SPECIAL_KEYWORDS.iter().any(|s| s.eq(&string)) { format!("{string}_") } else { ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/mod.rs
sea-orm-codegen/src/tests_cfg/mod.rs
#![allow(unused_imports, dead_code)] pub mod compact; pub mod dense; pub mod duplicated_many_to_many_paths; pub mod many_to_many; pub mod many_to_many_multiple; pub mod self_referencing;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/prelude.rs
sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/prelude.rs
pub use super::bills::Entity as Bills; pub use super::users::Entity as Users; pub use super::users_saved_bills::Entity as UsersSavedBills; pub use super::users_votes::Entity as UsersVotes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/users_votes.rs
sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/users_votes.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users_votes")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub user_id: i32, #[sea_orm(primary_key, auto_increment = false)] pub bill_id: i32, pub vote: bool, } ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/users_saved_bills.rs
sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/users_saved_bills.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users_saved_bills")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub user_id: i32, #[sea_orm(primary_key, auto_increment = false)] pub bill_id: i32, } #[derive(Copy...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/users.rs
sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/users.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text")] pub email: String, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Rel...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/mod.rs
sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/mod.rs
pub mod prelude; pub mod bills; pub mod users; pub mod users_saved_bills; pub mod users_votes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/bills.rs
sea-orm-codegen/src/tests_cfg/duplicated_many_to_many_paths/bills.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "bills")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub user_id: Option<i32> , } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/compact/indexes.rs
sea-orm-codegen/src/tests_cfg/compact/indexes.rs
//! An entity definition for testing table index creation. use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "indexes")] pub struct Model { #[sea_orm(primary_key)] pub indexes_id: i32, #[sea_orm(unique)] pub unique_attr: i32, #[sea_orm...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/compact/mod.rs
sea-orm-codegen/src/tests_cfg/compact/mod.rs
pub mod indexes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/dense/indexes.rs
sea-orm-codegen/src/tests_cfg/dense/indexes.rs
//! An entity definition for testing table index creation. use sea_orm::entity::prelude::*; #[sea_orm::model] #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "indexes")] pub struct Model { #[sea_orm(primary_key)] pub indexes_id: i32, #[sea_orm(unique)] pub unique_attr: ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/dense/mod.rs
sea-orm-codegen/src/tests_cfg/dense/mod.rs
pub mod indexes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many/prelude.rs
sea-orm-codegen/src/tests_cfg/many_to_many/prelude.rs
pub use super::bills::Entity as Bills; pub use super::users::Entity as Users; pub use super::users_votes::Entity as UsersVotes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many/users_votes.rs
sea-orm-codegen/src/tests_cfg/many_to_many/users_votes.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users_votes")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub user_id: i32, #[sea_orm(primary_key, auto_increment = false)] pub bill_id: i32, pub vote: bool, } ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many/users.rs
sea-orm-codegen/src/tests_cfg/many_to_many/users.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text")] pub email: String, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Rel...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many/mod.rs
sea-orm-codegen/src/tests_cfg/many_to_many/mod.rs
pub mod prelude; pub mod bills; pub mod users; pub mod users_votes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many/bills.rs
sea-orm-codegen/src/tests_cfg/many_to_many/bills.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "bills")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub user_id: Option<i32> , } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/self_referencing/prelude.rs
sea-orm-codegen/src/tests_cfg/self_referencing/prelude.rs
pub use super::bills::Entity as Bills; pub use super::users::Entity as Users;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/self_referencing/users.rs
sea-orm-codegen/src/tests_cfg/self_referencing/users.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub self_id: Option<i32> , pub self_idd: Option<i32> , } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/self_referencing/mod.rs
sea-orm-codegen/src/tests_cfg/self_referencing/mod.rs
pub mod prelude; pub mod bills; pub mod users;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/self_referencing/bills.rs
sea-orm-codegen/src/tests_cfg/self_referencing/bills.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "bills")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub self_id: Option<i32> , } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many_multiple/prelude.rs
sea-orm-codegen/src/tests_cfg/many_to_many_multiple/prelude.rs
pub use super::bills::Entity as Bills; pub use super::users::Entity as Users; pub use super::users_votes::Entity as UsersVotes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many_multiple/users_votes.rs
sea-orm-codegen/src/tests_cfg/many_to_many_multiple/users_votes.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users_votes")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub user_id: i32, #[sea_orm(primary_key, auto_increment = false)] pub bill_id: i32, pub user_idd: Opti...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many_multiple/users.rs
sea-orm-codegen/src/tests_cfg/many_to_many_multiple/users.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "users")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text")] pub email: String, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Rel...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many_multiple/mod.rs
sea-orm-codegen/src/tests_cfg/many_to_many_multiple/mod.rs
pub mod prelude; pub mod bills; pub mod users; pub mod users_votes;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/tests_cfg/many_to_many_multiple/bills.rs
sea-orm-codegen/src/tests_cfg/many_to_many_multiple/bills.rs
use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "bills")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub user_id: Option<i32> , } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/active_enum.rs
sea-orm-codegen/src/entity/active_enum.rs
use heck::ToUpperCamelCase; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use sea_query::DynIden; use std::fmt::Write; use crate::{EntityFormat, WithSerde}; #[derive(Clone, Debug)] pub struct ActiveEnum { pub(crate) enum_name: DynIden, pub(crate) values: Vec<DynIden>, } impl ActiveEnum { ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/base_entity.rs
sea-orm-codegen/src/entity/base_entity.rs
use heck::{ToSnakeCase, ToUpperCamelCase}; use proc_macro2::{Ident, TokenStream}; use quote::format_ident; use quote::quote; use sea_query::ColumnType; use crate::{ Column, ColumnOption, ConjunctRelation, PrimaryKey, Relation, util::escape_rust_keyword, }; #[derive(Clone, Debug)] pub struct Entity { pub(crate...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/column.rs
sea-orm-codegen/src/entity/column.rs
use crate::{BigIntegerType, DateTimeCrate, util::escape_rust_keyword}; use heck::{ToSnakeCase, ToUpperCamelCase}; use proc_macro2::{Ident, TokenStream}; use quote::{format_ident, quote}; use sea_query::{ColumnDef, ColumnType, StringLen}; use std::fmt::Write as FmtWrite; #[derive(Debug, Clone)] pub struct Column { ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/relation.rs
sea-orm-codegen/src/entity/relation.rs
use heck::{ToSnakeCase, ToUpperCamelCase}; use proc_macro2::{Ident, TokenStream}; use quote::{format_ident, quote}; use sea_query::{ForeignKeyAction, TableForeignKey}; use syn::{punctuated::Punctuated, token::Comma}; use crate::util::escape_rust_keyword; #[derive(Debug, Clone, Copy)] pub enum RelationType { HasOn...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/conjunct_relation.rs
sea-orm-codegen/src/entity/conjunct_relation.rs
use heck::{ToSnakeCase, ToUpperCamelCase}; use proc_macro2::Ident; use quote::format_ident; use crate::util::escape_rust_keyword; #[derive(Clone, Debug)] pub struct ConjunctRelation { pub(crate) via: String, pub(crate) to: String, } impl ConjunctRelation { pub fn get_via_snake_case(&self) -> Ident { ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/mod.rs
sea-orm-codegen/src/entity/mod.rs
mod active_enum; mod base_entity; mod column; mod conjunct_relation; mod primary_key; mod relation; mod transformer; mod writer; pub use active_enum::*; pub use base_entity::*; pub use column::*; pub use conjunct_relation::*; pub use primary_key::*; pub use relation::*; pub use transformer::*; pub use writer::*;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/writer.rs
sea-orm-codegen/src/entity/writer.rs
use crate::{ActiveEnum, ColumnOption, Entity, util::escape_rust_keyword}; use heck::ToUpperCamelCase; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use std::{collections::BTreeMap, str::FromStr}; use syn::{punctuated::Punctuated, token::Comma}; use tracing::info; mod compact; mod dense; mod expanded;...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
true
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/primary_key.rs
sea-orm-codegen/src/entity/primary_key.rs
use heck::{ToSnakeCase, ToUpperCamelCase}; use proc_macro2::Ident; use quote::format_ident; #[derive(Clone, Debug)] pub struct PrimaryKey { pub(crate) name: String, } impl PrimaryKey { pub fn get_name_snake_case(&self) -> Ident { format_ident!("{}", self.name.to_snake_case()) } pub fn get_nam...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/transformer.rs
sea-orm-codegen/src/entity/transformer.rs
use crate::{ ActiveEnum, Column, ConjunctRelation, Entity, EntityWriter, Error, PrimaryKey, Relation, RelationType, }; use sea_query::TableCreateStatement; use std::collections::{BTreeMap, HashMap}; #[derive(Clone, Debug)] pub struct EntityTransformer; impl EntityTransformer { pub fn transform(table_creat...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/writer/expanded.rs
sea-orm-codegen/src/entity/writer/expanded.rs
use super::*; impl EntityWriter { #[allow(clippy::too_many_arguments)] pub fn gen_expanded_code_blocks( entity: &Entity, with_serde: &WithSerde, column_option: &ColumnOption, schema_name: &Option<String>, serde_skip_deserializing_primary_key: bool, serde_skip_hid...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/writer/compact.rs
sea-orm-codegen/src/entity/writer/compact.rs
use super::*; impl EntityWriter { #[allow(clippy::too_many_arguments)] pub fn gen_compact_code_blocks( entity: &Entity, with_serde: &WithSerde, column_option: &ColumnOption, schema_name: &Option<String>, serde_skip_deserializing_primary_key: bool, serde_skip_hidd...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/writer/dense.rs
sea-orm-codegen/src/entity/writer/dense.rs
use super::*; use crate::{Relation, RelationType}; use heck::ToSnakeCase; impl EntityWriter { #[allow(clippy::too_many_arguments)] pub fn gen_dense_code_blocks( entity: &Entity, with_serde: &WithSerde, column_option: &ColumnOption, schema_name: &Option<String>, serde_ski...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/entity/writer/frontend.rs
sea-orm-codegen/src/entity/writer/frontend.rs
use super::*; impl EntityWriter { #[allow(clippy::too_many_arguments)] pub fn gen_frontend_code_blocks( entity: &Entity, with_serde: &WithSerde, column_option: &ColumnOption, schema_name: &Option<String>, serde_skip_deserializing_primary_key: bool, serde_skip_hid...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/merge/mod.rs
sea-orm-codegen/src/merge/mod.rs
use std::collections::{HashMap, HashSet}; use prettyplease::unparse; use syn::fold::{self, Fold}; use syn::{ Attribute, Fields, Ident, Item, ItemImpl, Path, parse::Parser, parse_file, punctuated::Punctuated, }; use syn::{ItemUse, Meta}; mod extract; use extract::*; #[derive(Default)] struct OldIndex<'a> { ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/src/merge/extract.rs
sea-orm-codegen/src/merge/extract.rs
use super::is_active_model_behavior_impl; use syn::File; use syn::Item; use syn::ItemEnum; use syn::ItemImpl; use syn::ItemStruct; use syn::ItemUse; pub(super) fn extract_active_model_behavior_impls(file: &File) -> impl Iterator<Item = &ItemImpl> { file.items.iter().filter_map(|item| match item { Item::Imp...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/frontend_with_derives/cake_one.rs
sea-orm-codegen/tests/frontend_with_derives/cake_one.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 #[derive(Clone, Debug, PartialEq, Eq, ts_rs::TS)] pub struct Model { pub id: i32, pub name: Option<String> , }
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/frontend_with_derives/cake_multiple.rs
sea-orm-codegen/tests/frontend_with_derives/cake_multiple.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 #[derive(Clone, Debug, PartialEq, Eq, ts_rs::TS, utoipa::ToSchema)] pub struct Model { pub id: i32, pub name: Option<String> , }
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/frontend_with_derives/cake_none.rs
sea-orm-codegen/tests/frontend_with_derives/cake_none.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 #[derive(Clone, Debug, PartialEq, Eq)] pub struct Model { pub id: i32, pub name: Option<String> , }
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/compact_with_derives/cake_one.rs
sea-orm-codegen/tests/compact_with_derives/cake_one.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, ts_rs::TS)] #[sea_orm(table_name = "cake")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text", nullable)] pub name: Opt...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/compact_with_derives/cake_multiple.rs
sea-orm-codegen/tests/compact_with_derives/cake_multiple.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, ts_rs::TS, utoipa::ToSchema)] #[sea_orm(table_name = "cake")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text", nullable)]...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/compact_with_derives/cake_none.rs
sea-orm-codegen/tests/compact_with_derives/cake_none.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "cake")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text", nullable)] pub name: Option<String>...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/postgres/binary_json_expanded.rs
sea-orm-codegen/tests/postgres/binary_json_expanded.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 //! //! This file tests that the JsonBinary column type is annotated correctly is //! expanded entity form. More information can be found in this issue: //! //! https://github.com/SeaQL/sea-orm/issues/1344 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Def...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/postgres/binary_json.rs
sea-orm-codegen/tests/postgres/binary_json.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 //! //! This file tests that the JsonBinary column type is annotated correctly is //! compact entity form. More information can be found in this issue: //! //! https://github.com/SeaQL/sea-orm/issues/1344 use sea_orm::entity::prelude::*; #[derive(Clone, Debug, P...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_attributes/cake_one.rs
sea-orm-codegen/tests/expanded_with_attributes/cake_one.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_attributes/cake_multiple.rs
sea-orm-codegen/tests/expanded_with_attributes/cake_multiple.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_attributes/cake_none.rs
sea-orm-codegen/tests/expanded_with_attributes/cake_none.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/rust_keyword.rs
sea-orm-codegen/tests/expanded/rust_keyword.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "rust_keyword" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveMod...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/prelude.rs
sea-orm-codegen/tests/expanded/prelude.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 pub use super::cake::Entity as Cake; pub use super::cake_filling::Entity as CakeFilling; pub use super::filling::Entity as Filling; pub use super::fruit::Entity as Fruit; pub use super::vendor::Entity as Vendor;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/cake_with_float.rs
sea-orm-codegen/tests/expanded/cake_with_float.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake_with_float" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActive...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/cake_filling.rs
sea-orm-codegen/tests/expanded/cake_filling.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "_cake_filling_" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveM...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/cake_with_double.rs
sea-orm-codegen/tests/expanded/cake_with_double.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake_with_double" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiv...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/cake.rs
sea-orm-codegen/tests/expanded/cake.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq)]...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/filling.rs
sea-orm-codegen/tests/expanded/filling.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "filling" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, E...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/collection_float.rs
sea-orm-codegen/tests/expanded/collection_float.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "collection_float" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActi...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/fruit.rs
sea-orm-codegen/tests/expanded/fruit.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "fruit" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq)...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/mod.rs
sea-orm-codegen/tests/expanded/mod.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 pub mod prelude; pub mod cake; pub mod cake_filling; pub mod filling; pub mod fruit; pub mod vendor;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/child.rs
sea-orm-codegen/tests/expanded/child.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "child" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/vendor.rs
sea-orm-codegen/tests/expanded/vendor.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "vendor" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/cake_filling_price.rs
sea-orm-codegen/tests/expanded/cake_filling_price.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake_filling_price" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveAct...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/collection.rs
sea-orm-codegen/tests/expanded/collection.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "collection" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveMode...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded/parent.rs
sea-orm-codegen/tests/expanded/parent.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "parent" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, E...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_serde/cake_deserialize.rs
sea-orm-codegen/tests/expanded_with_serde/cake_deserialize.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; use serde::Deserialize; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveMode...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_serde/cake_serialize.rs
sea-orm-codegen/tests/expanded_with_serde/cake_serialize.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; use serde::Serialize; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveModel,...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_serde/cake_none.rs
sea-orm-codegen/tests/expanded_with_serde/cake_none.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveModel, DeriveActiveModel, Eq...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_serde/cake_serialize_with_hidden_column.rs
sea-orm-codegen/tests/expanded_with_serde/cake_serialize_with_hidden_column.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; use serde::Serialize; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq, DeriveModel,...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_serde/cake_both.rs
sea-orm-codegen/tests/expanded_with_serde/cake_both.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; use serde::{Deserialize,Serialize}; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn table_name(&self) -> &str { "cake" } } #[derive(Clone, Debug, PartialEq...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/frontend_with_attributes/cake_one.rs
sea-orm-codegen/tests/frontend_with_attributes/cake_one.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 #[derive(Clone, Debug, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct Model { pub id: i32, pub name: Option<String> , }
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/frontend_with_attributes/cake_multiple.rs
sea-orm-codegen/tests/frontend_with_attributes/cake_multiple.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 #[derive(Clone, Debug, PartialEq, Eq)] #[serde(rename_all = "camelCase")] #[ts(export)] pub struct Model { pub id: i32, pub name: Option<String> , }
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/frontend_with_attributes/cake_none.rs
sea-orm-codegen/tests/frontend_with_attributes/cake_none.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 #[derive(Clone, Debug, PartialEq, Eq)] pub struct Model { pub id: i32, pub name: Option<String> , }
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/compact_with_attributes/cake_one.rs
sea-orm-codegen/tests/compact_with_attributes/cake_one.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "cake")] #[serde(rename_all = "camelCase")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text", null...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/compact_with_attributes/cake_multiple.rs
sea-orm-codegen/tests/compact_with_attributes/cake_multiple.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "cake")] #[serde(rename_all = "camelCase")] #[ts(export)] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type ...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/compact_with_attributes/cake_none.rs
sea-orm-codegen/tests/compact_with_attributes/cake_none.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude:: * ; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "cake")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm(column_type = "Text", nullable)] pub name: Option<String>...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/rust_keyword.rs
sea-orm-codegen/tests/expanded_with_schema_name/rust_keyword.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "rust...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/prelude.rs
sea-orm-codegen/tests/expanded_with_schema_name/prelude.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 pub use super::cake::Entity as Cake; pub use super::cake_filling::Entity as CakeFilling; pub use super::filling::Entity as Filling; pub use super::fruit::Entity as Fruit; pub use super::vendor::Entity as Vendor;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/cake_with_float.rs
sea-orm-codegen/tests/expanded_with_schema_name/cake_with_float.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "cake...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/cake_filling.rs
sea-orm-codegen/tests/expanded_with_schema_name/cake_filling.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "_cak...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/cake_with_double.rs
sea-orm-codegen/tests/expanded_with_schema_name/cake_with_double.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "cake...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/cake.rs
sea-orm-codegen/tests/expanded_with_schema_name/cake.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "cake...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/filling.rs
sea-orm-codegen/tests/expanded_with_schema_name/filling.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "fill...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/collection_float.rs
sea-orm-codegen/tests/expanded_with_schema_name/collection_float.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "col...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/fruit.rs
sea-orm-codegen/tests/expanded_with_schema_name/fruit.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "frui...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/mod.rs
sea-orm-codegen/tests/expanded_with_schema_name/mod.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 pub mod prelude; pub mod cake; pub mod cake_filling; pub mod filling; pub mod fruit; pub mod vendor;
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/child.rs
sea-orm-codegen/tests/expanded_with_schema_name/child.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "chi...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/vendor.rs
sea-orm-codegen/tests/expanded_with_schema_name/vendor.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "vend...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/cake_filling_price.rs
sea-orm-codegen/tests/expanded_with_schema_name/cake_filling_price.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.1.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "cake...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false
SeaQL/sea-orm
https://github.com/SeaQL/sea-orm/blob/51dd40b0d126d4745f5429b7be247e44941429de/sea-orm-codegen/tests/expanded_with_schema_name/collection.rs
sea-orm-codegen/tests/expanded_with_schema_name/collection.rs
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use sea_orm::entity::prelude::*; #[derive(Copy, Clone, Default, Debug, DeriveEntity)] pub struct Entity; impl EntityName for Entity { fn schema_name(&self) -> Option< &str > { Some("schema_name") } fn table_name(&self) -> &str { "col...
rust
Apache-2.0
51dd40b0d126d4745f5429b7be247e44941429de
2026-01-04T15:46:05.431304Z
false