mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-12 20:19:51 +08:00
refactor(data): remove MySQL and SQLite support
Use PostgreSQL as the only database backend across runtime, schema tooling, installation, Compose, and CI. Update regression tests and reject removed drivers explicitly.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
use aether_data_schema::dialect::{mysql, postgres, sqlite};
|
||||
use aether_data_schema::dialect::postgres;
|
||||
use aether_data_schema::{check_generated_dir, generate_loaded_to_dir, load_schema_sources};
|
||||
use clap::{Parser, Subcommand, ValueEnum};
|
||||
|
||||
@@ -39,8 +39,6 @@ enum Command {
|
||||
#[derive(Debug, Clone, Copy, ValueEnum)]
|
||||
enum Driver {
|
||||
Postgres,
|
||||
Mysql,
|
||||
Sqlite,
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
@@ -66,8 +64,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let schema = load_schema_sources(schema_dir)?.schema;
|
||||
let output = match driver {
|
||||
Driver::Postgres => postgres::emit_schema(&schema),
|
||||
Driver::Mysql => mysql::emit_schema(&schema),
|
||||
Driver::Sqlite => sqlite::emit_schema(&schema),
|
||||
};
|
||||
print!("{output}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user