Skip to content

Column Name Validations

Run validations on the column names to check for column name count of existence of column names.

Count Equal

Ensure column name count is equal to certain number.


Not Equal

Ensure column name count is between two numbers.

validation().columnNames().countBetween(10, 12)
validation.columnNames.countBetween(10, 12)

Match Order

Ensure all column names match particular ordering and is complete.

validation().columnNames().matchOrder("account_id", "amount", "name")
validation.columnNames.matchOrder("account_id", "amount", "name")

Match Set

Ensure column names contains set of expected names. Order is not checked.

validation().columnNames().matchSet("account_id", "first_name")
validation.columnNames.matchSet("account_id", "first_name")