-
Notifications
You must be signed in to change notification settings - Fork 0
Database usage
Ned edited this page Oct 17, 2018
·
9 revisions
Database constructor takes in 4 parameters of type string:
-hostname
-username
-password
-database name
InsertData() function inserts new data into the database and takes 3/4 parameters:
-id (int)
-name (string)
-lastname (string)
-age (int) [optional, default value is 0]
RetrieveData() function returns a List type that contains all data specified in the command It takes one parameter that is a command query that will be given to the database:
-commmand (string)