init

Creates a collection in the database, if collection does not exist

This method is available only for MySQL X Protocol (Document Store)

Signature

init(session: mysqlx.Session): Promise<void>;

Example

await db.usingSession(async (session) => {
  await employeeController.init(session);
});

Last updated