Skip to content

fieldNamesOf

fieldNamesOf(headers): string[]

Defined in: packages/schema/src/user-tables/column-names.ts:35

The field names of a file’s columns from their headers, in order: each in snake_case, column_<letters> (its letters in the file) for a header with no letters or digits, and a name that repeats an earlier one, is a word SQL reserves or a name every table’s field has (id, etag, organization_id) with _2, _3 and so on after it. Two headers never share a name.

readonly string[]

string[]