Open tejainece opened 5 years ago
Yes.
It is about "CREATE TYPE" in SQL.
Ok
This statement depends on a database. For example, SQLite hasn't it.
Yes.
It will only be implemented in databases that support it.
Maybe we can emulate for databases that don't support it.
I use flutter with sqfilte package. For the same case I did next steps:
__
NestedClassPropertyName (for the example: b__field1
and b__field2
)fromMap
, toSetColumns
and createTable
At the moment I had no problems ;)
Why not just being able to inherit from an abstract type called Serializable
which provides String serialization / deserialization ?
Example:
class Stats extends Serializable {
int points;
@override
factory Stats.fromString(String src) {
// some parsing
}
@override
String toString() {
// convert to string
}
}
class User {
@PrimaryKey(auto: true)
int id;
string name;
Stats stats;
}
Hello. Is the task about that?