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.
Parameters
Section titled “Parameters”fileName
Section titled “fileName”string
taken?
Section titled “taken?”Iterable<string> = []
maxBytes?
Section titled “maxBytes?”number = maxNameBytes
Returns
Section titled “Returns”string | undefined