📝Sqlite
This service is used to interact with the Redis database.
Imports
Method of Use
To use this module, you need to inject it into the desired service.
Injecting the module into our service.
Modifying our main.ts
With dependencies
You will need to inject the following interfaces.
IConfigurationService
IValidatorRegexpService
IStringExService
IDebugService
Properties
app
public
This is instance of application.
_db
private
This is the major component of sqlite3. Use it to connect to a standalone Sqlite server or Sentinels.
get _dbName
private
This method is used to get database name.
get db
public
This method is used to get database instance.
Methods
_connectionLogs
private
This method is used to log connection events.
shutdown
public
This method is used to shutdown application.
onApplicationShutdown
public
This method is called before the application shutdown.
enableShutdownHooks
public
This method is used to enable shutdown hooks.
Last updated