diff --git a/sea-orm-cli/Cargo.toml b/sea-orm-cli/Cargo.toml index c5ae5823..85fc693f 100644 --- a/sea-orm-cli/Cargo.toml +++ b/sea-orm-cli/Cargo.toml @@ -20,8 +20,9 @@ clap = { version = "^2.33.3" } dotenv = { version = "^0.15" } async-std = { version = "^1.9", features = [ "attributes" ] } sea-orm-codegen = { path = "../sea-orm-codegen" } -sea-schema = { version = "^0.2", default-features = false, features = [ +sea-schema = { version = "^0.2", git = "https://github.com/SeaQL/sea-schema.git", branch = "pg-discovery-writer", default-features = false, features = [ "sqlx-mysql", + "sqlx-postgres", "discovery", "writer", ] } diff --git a/sea-orm-cli/src/main.rs b/sea-orm-cli/src/main.rs index ecfa7892..9a512050 100644 --- a/sea-orm-cli/src/main.rs +++ b/sea-orm-cli/src/main.rs @@ -1,8 +1,6 @@ use clap::ArgMatches; use dotenv::dotenv; use sea_orm_codegen::{EntityTransformer, OutputFile}; -use sea_schema::mysql::discovery::SchemaDiscovery; -use sqlx::MySqlPool; use std::{error::Error, fmt::Display, fs, io::Write, path::Path, process::Command}; mod cli; @@ -28,14 +26,33 @@ async fn run_generate_command(matches: &ArgMatches<'_>) -> Result<(), Box