ormlite icon indicating copy to clipboard operation
ormlite copied to clipboard

An ORM in Rust for developers that love SQL.

Results 11 ormlite issues
Sort by recently updated
recently updated
newest added

I can have a field for setting the creation date: ```rust #[ormlite(default_value = "chrono::Utc::now()")] pub updated_at: Option, ``` but how can I have a field that is auto set every...

So I have a User model, and an Access model, I want to trigger the creation of an Access model at the same time (with some reasonable defaults) as it's...

This is the code required to create a user role enum, if we want it to be just a VARCHAR in the database, rather than a postgresql enum. ```rs #[derive(...

This PR contains a first working implementation of `Model`s struct code-generation by using live database reflection. Caveats: - Uses my `KVec` implementation for one-to-many relations (not yet in repo); -...

```rust #[derive(Debug, Model)] #[ormlite(table = "schedule_config")] pub struct ScheduleConfig { #[ormlite(primary_key)] pub id: i64, pub user_id: i64, pub store_id: i64, pub proxy_id: i64, pub r#type: SchedulerType, pub finished: bool, pub...

It's common to have the table that is natural to describe as two columns (or more) columns instead of just one. For example, consider a Device that has multiple child...

What i did: - added optional schema field for the ModelAttributes - added optional schema_name for TableMetadata - changed query statements to add schema (ex: from `INSERT INTO \"{}\" ...`...

#[cfg(feature = "mysql")] compile_error!("mysql is currently not supported"); #[cfg(feature = "postgres")] pub type DB = postgres::PostgresBackend; #[cfg(feature = "sqlite")] pub type DB = sqlite::SqliteBackend;

Hi, I'm currently working to integrate sqlite into the ormlite CLI.