Skip to content

tableNameOf

tableNameOf(fileName, taken?, maxBytes?): string | undefined

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

A table’s name from a file’s name, without its extension, in snake_case, and with _2, _3 and so on after it when a name in taken, such as the app’s resources, or a word SQL reserves has it; undefined when the name has no letters or digits. maxBytes is 42 in an app with organizations.

string

Iterable<string> = []

number = maxNameBytes

string | undefined