cratefield-cli 0.6.0

The fz CLI for Cratefield ventures: migrations collect/apply, doctor, modules, push
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! The portable-SQL lint (issue #8): flags tokens that SQLite and Postgres
//! disagree about, or that betray non-portable DDL. The canonical definition
//! lives in `cratefield-core` ([`lint_portable_sql`]) so the Postgres
//! migration runner selects against the identical predicate (issue #18).

pub use cratefield_core::lint_portable_sql;

/// Returns `(token, explanation)` pairs found in `sql`.
///
/// Kept as an alias for `fz doctor`; see [`lint_portable_sql`].
#[must_use]
pub fn banned_tokens(sql: &str) -> Vec<(&'static str, &'static str)> {
    lint_portable_sql(sql)
}