Skip to main content

known_columns

Function known_columns 

Source
pub fn known_columns(
    migrations_dir: &Path,
    table: &str,
) -> Result<Option<BTreeSet<String>>>
Expand description

The set of column names a table already has, parsed from every generated migration that touches it (*_create_<table>.sql and any ALTER TABLE <table> ADD COLUMN). Returns None if the table has no create migration yet.