Sprite

SpriteDatabase.getSchema

Return the current schema.

Example

async function getSchemaExample() {
  try {
    const schema = await db.getSchema();
    console.log(schema);
    // [...]
    return schema;
  } catch (error) {
    console.log(error);
    // handle error conditions
  }
}

getSchemaExample();