メインコンテンツまでスキップ

Interface

This interface is used to set the options for the XP Client.

PropertyTypeOptionalDefaultDescription
auto_createbooleanWhether to auto create the user in the database.
dbOptions.type"mongodb" or "sqlite"mongodbThe type of database to use.
dbOptions.databaseMongoClient or better-sqlite3 databaseThe database to use (REQUIRED IF TYPE SPECIFIED).
dbOptions.namestringMONGODB: Optional explicit database name. If omitted, default DB from the connection is used.
debugbooleanfalseWhether to enable debug logging or not.
notifybooleantrueWhether to enable info logging or not.
xp_rate"fast", "normal", "slow" or numbernormalThe rate of XP gain. Numeric values must be finite and greater than 0.