Task #261

Task #289: Refactor

Move database access methods into general database class

Added by Espen Solbu over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:01/17/2012
Priority:LowDue date:
Assignee:Espen Solbu% Done:

100%

Category:RefactorSpent time:-
Target version:3.0 FrSky hub and sensors

Description

Get rid of database access within:
- Models
- Channels

Need to support:
  • updateModel(Model)
    • Exists->Update
    • Not exists->Create
  • deleteModel(Model)
    • deletes all channels for model
    • deletes model
  • getAllChannelsForModel(Model)
    • returns all channels for given model
  • deleteChannelsForModel(Model) (Private, only run by deleteModel?)
    • deletes all channels for model
  • addChannelToModel(Model,Channel)
  • updateChannel(Channel)
    • Exists->Update
    • Not exists->Create
  • deleteChannel(Channel)
    • Deletes given channel
  • ...

Associated revisions

Revision 221
Added by Espen Solbu over 6 years ago

refs #261, #286 Code is currently broken.

Revision 224
Added by Espen Solbu over 6 years ago

closes #261 Renamed new database class, and server's database

History

#1 Updated by Espen Solbu over 6 years ago

  • Parent task set to #289

#2 Updated by Espen Solbu over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset r224.

Also available in: Atom PDF