Upgrade to Pro — share decks privately, control downloads, hide ads and more …

RealtimeDB.Firebase.ebisu

1amageek
October 21, 2016

 RealtimeDB.Firebase.ebisu

Firebase RealtimeDBを利用の考察

1amageek

October 21, 2016
Tweet

More Decks by 1amageek

Other Decks in Technology

Transcript

  1. Timers inc "VUIFOUJDBUJPO 4DIFNFMFTT 1FSGPSNBODF .JHSBUJPO -PHHJOH 4FDVSJUZ طଘͷγεςϜ͔ΒͷҠߦ ηΩϡΞͳ؀ڥ͸࡞ΕΔ͔

    ࣗ༝౓͕ߴ͍͜ͱ͸ɺ։ൃͷ෯Λ޿͛Δ͕ όάΛੜΈ΍͍͢ ࣮༻ʹରԠͰ͖Δͷ͔ɺੑೳྼԽ͠ͳ͍͔ ࣗࣾαʔϏεͰ͸ͳ͍͕ɺͲͷΑ͏ʹ-PHΛ நग़͢Δ͔ αʔϏεͷਐԽʹ߹Θͤͯॊೈʹ ରԠͰ͖Δ͔
  2. Timers inc 0CTFSWF .JHSBUJPO let ref: FIRDatabaseReference = FIRDatabase.database().reference() let

    ref_A: FIRDatabaseReference = ref.child("YOUR_REFERENCE_KEY_A”) let ref_B: FIRDatabaseReference = ref.child(“YOUR_REFERENCE_KEY_B”) ref_A.observeSingleEvent(of: .value, with: { (snapshot) in ref_B.setValue(snapshot.value) })