Skip to content

Commit

Permalink
Update sales record in setup_database.bal
Browse files Browse the repository at this point in the history
  • Loading branch information
praneesha authored Oct 3, 2023
1 parent f827452 commit 1df8890
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/mysql-prerequisite/setup_database.bal
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ public function main() returns sql:Error? {
);`);

// Adds the records to the `sales_order` table.
_ = check mysqlClient->execute(`INSERT INTO inventory VALUES
("A-123", "Lemonade", "Beyonce", 18.98, 10);`);
_ = check mysqlClient->execute(`INSERT INTO inventory VALUES
("A-321", "Renaissance", "Beyonce", 24.98, 100);`);
_ = check mysqlClient->execute(`INSERT INTO MUSIC_STORE.sales_order VALUES
("S-123", "2022-12-09", "A-123", 2);`);
_ = check mysqlClient->execute(`INSERT INTO MUSIC_STORE.sales_order VALUES
("S-321", "2022-12-09", "A-321", 1);`);
_ = check mysqlClient->execute(`INSERT INTO MUSIC_STORE.sales_order VALUES
("S-456", "2022-12-10", "A-321", 3);`);

check mysqlClient.close();
}

0 comments on commit 1df8890

Please sign in to comment.