async function writeInitializedFlagDocument(database) {
  await database.put({
    _id: INITIALIZED_FLAG_DOCUMENT_ID,
    initialized: true,
    version: VERSION
  })
    .catch(err => {
      throw unknowError(err)
    })
}
/**
 * Writes the initialized flag document to the database
 * @private
 */
Writes the initialized flag document to the database
@private
Writes the initialized flag document to the database @private
async function writeInitializedFlagDocument(database) {
  await database.put({
    _id: INITIALIZED_FLAG_DOCUMENT_ID,
    initialized: true,
    version: VERSION
  })
    .catch(err => {
      throw unknowError(err)
    })
}
async function writeInitializedFlagDocument ( database ) { await database . put ( { _id : INITIALIZED_FLAG_DOCUMENT_ID , initialized : true , version : VERSION } ) . catch ( err => { throw unknowError ( err ) } ) }
Writes the initialized flag document to the database
 @private
Writes the initialized flag document to the database @private