Database

Module to generate database related entries.

Collation

Returns a random database collation.

Returns: string

faker.database.collation(): string
faker.database.collation() // => "ascii_bin"
faker.database.collation() // 'utf8_unicode_ci'

Column

Returns a random database column name.

Returns: string

faker.database.column(): string
faker.database.column() // => "category"
faker.database.column() // 'createdAt'

Engine

Returns a random database engine.

Returns: string

faker.database.engine(): string
faker.database.engine() // => "CSV"
faker.database.engine() // 'ARCHIVE'

Mongodb Object Id

Returns a MongoDB ObjectId string.

Returns: string

faker.database.mongodbObjectId(): string
faker.database.mongodbObjectId() // => "cdfcdcbc9de896d1f58abbba"
faker.database.mongodbObjectId() // 'e175cac316a79afdd0ad3afb'

Type

Returns a random database column type.

Returns: string

faker.database.type(): string
faker.database.type() // => "double"
faker.database.type() // 'timestamp'