Faker C++
Loading...
Searching...
No Matches
faker::database Namespace Reference

Functions

FAKER_CXX_EXPORT std::string_view columnName ()
 Returns a random database column name.
 
FAKER_CXX_EXPORT std::string_view columnType ()
 Returns a random database column type.
 
FAKER_CXX_EXPORT std::string_view collation ()
 Returns a random database collation.
 
FAKER_CXX_EXPORT std::string_view engine ()
 Returns a random database engine.
 
FAKER_CXX_EXPORT std::string mongoDbObjectId ()
 Returns a MongoDB Object Id.
 

Function Documentation

◆ collation()

FAKER_CXX_EXPORT std::string_view faker::database::collation ( )

Returns a random database collation.

Returns
Database collation.
faker::database::collation() // "utf8_unicode_ci"
FAKER_CXX_EXPORT std::string_view collation()
Returns a random database collation.

◆ columnName()

FAKER_CXX_EXPORT std::string_view faker::database::columnName ( )

Returns a random database column name.

Returns
Database column name.
faker::database::columnName() // "created_at"
FAKER_CXX_EXPORT std::string_view columnName()
Returns a random database column name.

◆ columnType()

FAKER_CXX_EXPORT std::string_view faker::database::columnType ( )

Returns a random database column type.

Returns
Database column type.
FAKER_CXX_EXPORT std::string_view columnType()
Returns a random database column type.

◆ engine()

FAKER_CXX_EXPORT std::string_view faker::database::engine ( )

Returns a random database engine.

Returns
Database engine.
FAKER_CXX_EXPORT std::string_view engine()
Returns a random database engine.

◆ mongoDbObjectId()

FAKER_CXX_EXPORT std::string faker::database::mongoDbObjectId ( )

Returns a MongoDB Object Id.

Returns
MongoDB Object Id.
faker::database::mongoDbObjectId() // "e175cac316a79afdd0ad3afb"
FAKER_CXX_EXPORT std::string mongoDbObjectId()
Returns a MongoDB Object Id.