This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#7. Considering done. We have all data inside the EmittedEntity
- Loading branch information
Showing
7 changed files
with
98 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class FieldParseException implements Exception { | ||
dynamic inner; | ||
|
||
String fieldName; | ||
|
||
String message; | ||
|
||
StackTrace trace; | ||
|
||
FieldParseException(this.fieldName, this.inner, this.trace, {this.message}); | ||
|
||
String toString() { | ||
StringBuffer stringBuffer = StringBuffer(); | ||
stringBuffer.writeln('Exception while parsing field: $fieldName!'); | ||
if (message != null) { | ||
stringBuffer.writeln("Message: $message"); | ||
} | ||
stringBuffer.writeln(inner); | ||
stringBuffer.writeln(trace); | ||
return stringBuffer.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
class EmittedEntity {} | ||
import 'package:flutter_sqlite_m8_generator/generator/utils/utils.dart'; | ||
|
||
class EmittedEntity { | ||
final String modelName; | ||
final String entityName; | ||
final Map<String, EntityAttribute> attributes; | ||
EmittedEntity(this.modelName, this.entityName, this.attributes); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class EntityAttribute { | ||
final String modelTypeName; | ||
final String modelName; | ||
|
||
final String attributeName; | ||
|
||
EntityAttribute(this.modelTypeName, this.modelName, this.attributeName, | ||
{int metadataLevel}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters