Implement word search
This commit is contained in:
@@ -15,9 +15,9 @@ abstract class TableNames {
|
||||
static const String senseField = 'JMdict_SenseField';
|
||||
static const String senseGlossary = 'JMdict_SenseGlossary';
|
||||
static const String senseInfo = 'JMdict_SenseInfo';
|
||||
static const String senseLanguageSource = 'JMdict_SenseLanguageSource';
|
||||
static const String senseMisc = 'JMdict_SenseMisc';
|
||||
static const String sensePOS = 'JMdict_SensePOS';
|
||||
static const String senseLanguageSource = 'JMdict_SenseLanguageSource';
|
||||
static const String senseRestrictedToKanji = 'JMdict_SenseRestrictedToKanji';
|
||||
static const String senseRestrictedToReading =
|
||||
'JMdict_SenseRestrictedToReading';
|
||||
@@ -216,7 +216,22 @@ class Sense extends SQLWritable {
|
||||
});
|
||||
|
||||
@override
|
||||
Map<String, Object?> get sqlValue => {};
|
||||
Map<String, Object?> get sqlValue => {
|
||||
'id': id,
|
||||
'orderNum': orderNum,
|
||||
};
|
||||
|
||||
bool get isEmpty => antonyms.isEmpty &&
|
||||
dialects.isEmpty &&
|
||||
fields.isEmpty &&
|
||||
info.isEmpty &&
|
||||
languageSource.isEmpty &&
|
||||
glossary.isEmpty &&
|
||||
misc.isEmpty &&
|
||||
pos.isEmpty &&
|
||||
restrictedToKanji.isEmpty &&
|
||||
restrictedToReading.isEmpty &&
|
||||
seeAlso.isEmpty;
|
||||
}
|
||||
|
||||
class Entry extends SQLWritable {
|
||||
|
||||
Reference in New Issue
Block a user