Wrapper functions that perform write operations to database asynchronously

await asyncDatabaseWrite(db, "INSERT INTO people (name, age, birthday) VALUES ('Ben', 21, '1970-1-1');", () => {});
  • Type Parameters

    • Type

    Parameters

    Returns Promise<Type>

    Promise for database operation