mardi 21 avril 2015

SQLite.swift: Best way to implement model classes representing records of a given table?

The only question I've asked (so far) that doesn't need much explanation.

I had got as far as:

  • each class might have an initialiseTable() kind of like function which would be called when the DB schema is initialised?
  • Static constants in each class for column Expression<T>

I guess the part I'm pondering about most is filling instances of model classes with Query results.

As always, thanks in advance for help :)

Aucun commentaire:

Enregistrer un commentaire