Class

Sqlite

Sqlite()

Sqlite Hooks. Instance name: sqliteApi

You can use it to modify sqlite database options for your app.

Constructor

# new Sqlite()

Example
externalCodeSetup.sqliteApi.METHOD_NAME

Methods

# disableSqlite()

You can use this to disable sqlite database which is used for storing offline courses.

Example
externalCodeSetup.sqliteApi.disableSqlite()

# setLessonEntities(columns)

You can use this to customize sqlite LessonModel which is used for storing offline lesson. For example, you can add a new column or modify the existing columns.

Parameters:
Name Type Description
columns LessonEntitiesCallback
Example
externalCodeSetup.sqliteApi.setLessonEntities(props => {
   return {
     ...props,
     new_column_name_1: {type: "text", nullable: true},
     new_column_name_2: {type: "text", nullable: true},
   };
})