ruskit 0.1.5

A modern web framework for Rust inspired by Laravel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::app::entities::User;
use crate::framework::database::model::Model;
use crate::framework::database::factory::Factory;

pub fn initialize() {
    println!("Initializing user seeder...");
}

pub async fn run() {
    println!("Running user seeder...");
    for _ in 0..10 {
        let user = User::definition();
        User::create(user).await.unwrap();
    }
    println!("User seeder completed");
}