Skip to content

Instantly share code, notes, and snippets.

@qHack
Created January 31, 2017 18:28
Show Gist options
  • Save qHack/cb42bd4f81a83abc0a106bfa666a65c6 to your computer and use it in GitHub Desktop.
Save qHack/cb42bd4f81a83abc0a106bfa666a65c6 to your computer and use it in GitHub Desktop.
swift code:
while (counter < 50){
patientName = newPatient.patientName + String(counter)
FIRDatabase.database().reference().child("testTable").child("patient").setValue(patientName)
FIRDatabase.database().reference().child("testTable").child("patient").child(patientName).child("patient DOB").setValue(newPatient.patientDOB)
FIRDatabase.database().reference().child("testTable").child("patient").child(patientName).child("test var").setValue(newPatient.patienttest)
FIRDatabase.database().reference().child("testTable").child("patient").child(patientName).child("test var 1").setValue(newPatient.patienttest1)
counter += 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment