[CLI] fixup - generate entity file for all tables by default (#1251)

This commit is contained in:
Billy Chan 2022-11-24 20:21:52 +08:00 committed by GitHub
parent b0979072ae
commit d32e1eb058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,8 @@ pub async fn run_generate_command(
let is_sqlite = url.scheme() == "sqlite";
// Closures for filtering tables
let filter_tables = |table: &String| -> bool { tables.contains(table) };
let filter_tables =
|table: &String| -> bool { tables.is_empty() || tables.contains(table) };
let filter_hidden_tables = |table: &str| -> bool {
if include_hidden_tables {