insertRow function
Implementation
Future<void> insertRow(
Connection connection,
String id, {
String? name,
num? age,
num? height,
bool? isStaff,
DateTime? createdAt,
ByteData? profilePicture,
}) async {
final cursor = await connection.cursor();
await cursor.execute(Insert(schema, [
{
"id": id,
"name": name,
"age": age,
"height": height,
"isStaff": isStaff,
"createdAt": createdAt,
"profilePicture": profilePicture,
}
]));
await cursor.close();
}