pub fn build(ignore_list: &[Regex], default_drivers: &[&str])Expand description
Runs the easy-sql build step and panics on failure.
Scans the src/ directory for table definitions, updates easy_sql.ron, and
generates missing #[sql(unique_id = "...")] attributes for new tables.
When parsing fails, detailed error logs are written to
easy_sql_logs/YYYY-MM-DD.txt.
The default_drivers list is used by query macros when no <Driver> is
specified at the call site. This mirrors the values you would normally pass
from the build script.
§Arguments
ignore_list - Regex patterns used to skip files or directories by path.
default_drivers - Driver paths (for example, "crate::Sqlite").
§Panics
Panics with detailed diagnostics if parsing fails or compilation data is invalid.
§Example
ⓘ
use regex::Regex;
fn main() {
sql_build::build(
&[Regex::new(r"example_all\.rs").unwrap()],
&["crate::Sqlite"],
);
}