Namespace TableSpeculation
Functions
columnType
- columnType(columnName: string, samples?: any[], defaultDatabaseType?: "string" | "boolean" | "date" | "email" | "float" | "integer" | "phoneNumber" | "url"): typeof PropertyTypes[number]
Parameters
columnName: string
samples: any[] = []
defaultDatabaseType: "string" | "boolean" | "date" | "email" | "float" | "integer" | "phoneNumber" | "url" = "string"
isUniqueColumn
- isUniqueColumn(columnName: string): boolean
Parameters
Returns boolean
suggestKey
Parameters
key: string
existingProperties: Property[]
Returns string