// GENERATED CODE - DO NOT MODIFY BY HAND part of 'ordinal.dart'; // ************************************************************************** // IsarCollectionGenerator // ************************************************************************** // coverage:ignore-file // ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetOrdinalCollection on Isar { IsarCollection get ordinals => this.collection(); } const OrdinalSchema = CollectionSchema( name: r'Ordinal', id: -7772149326141951436, properties: { r'content': PropertySchema( id: 0, name: r'content', type: IsarType.string, ), r'inscriptionId': PropertySchema( id: 1, name: r'inscriptionId', type: IsarType.string, ), r'inscriptionNumber': PropertySchema( id: 2, name: r'inscriptionNumber', type: IsarType.long, ), r'utxoTXID': PropertySchema( id: 3, name: r'utxoTXID', type: IsarType.string, ), r'utxoVOUT': PropertySchema( id: 4, name: r'utxoVOUT', type: IsarType.long, ), r'walletId': PropertySchema( id: 5, name: r'walletId', type: IsarType.string, ) }, estimateSize: _ordinalEstimateSize, serialize: _ordinalSerialize, deserialize: _ordinalDeserialize, deserializeProp: _ordinalDeserializeProp, idName: r'id', indexes: { r'inscriptionId_utxoTXID_utxoVOUT': IndexSchema( id: 2138008085066605381, name: r'inscriptionId_utxoTXID_utxoVOUT', unique: true, replace: true, properties: [ IndexPropertySchema( name: r'inscriptionId', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'utxoTXID', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'utxoVOUT', type: IndexType.value, caseSensitive: false, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _ordinalGetId, getLinks: _ordinalGetLinks, attach: _ordinalAttach, version: '3.1.8', ); int _ordinalEstimateSize( Ordinal object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.content.length * 3; bytesCount += 3 + object.inscriptionId.length * 3; bytesCount += 3 + object.utxoTXID.length * 3; bytesCount += 3 + object.walletId.length * 3; return bytesCount; } void _ordinalSerialize( Ordinal object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.content); writer.writeString(offsets[1], object.inscriptionId); writer.writeLong(offsets[2], object.inscriptionNumber); writer.writeString(offsets[3], object.utxoTXID); writer.writeLong(offsets[4], object.utxoVOUT); writer.writeString(offsets[5], object.walletId); } Ordinal _ordinalDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = Ordinal( content: reader.readString(offsets[0]), inscriptionId: reader.readString(offsets[1]), inscriptionNumber: reader.readLong(offsets[2]), utxoTXID: reader.readString(offsets[3]), utxoVOUT: reader.readLong(offsets[4]), walletId: reader.readString(offsets[5]), ); object.id = id; return object; } P _ordinalDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; case 1: return (reader.readString(offset)) as P; case 2: return (reader.readLong(offset)) as P; case 3: return (reader.readString(offset)) as P; case 4: return (reader.readLong(offset)) as P; case 5: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _ordinalGetId(Ordinal object) { return object.id; } List> _ordinalGetLinks(Ordinal object) { return []; } void _ordinalAttach(IsarCollection col, Id id, Ordinal object) { object.id = id; } extension OrdinalByIndex on IsarCollection { Future getByInscriptionIdUtxoTXIDUtxoVOUT( String inscriptionId, String utxoTXID, int utxoVOUT) { return getByIndex(r'inscriptionId_utxoTXID_utxoVOUT', [inscriptionId, utxoTXID, utxoVOUT]); } Ordinal? getByInscriptionIdUtxoTXIDUtxoVOUTSync( String inscriptionId, String utxoTXID, int utxoVOUT) { return getByIndexSync(r'inscriptionId_utxoTXID_utxoVOUT', [inscriptionId, utxoTXID, utxoVOUT]); } Future deleteByInscriptionIdUtxoTXIDUtxoVOUT( String inscriptionId, String utxoTXID, int utxoVOUT) { return deleteByIndex(r'inscriptionId_utxoTXID_utxoVOUT', [inscriptionId, utxoTXID, utxoVOUT]); } bool deleteByInscriptionIdUtxoTXIDUtxoVOUTSync( String inscriptionId, String utxoTXID, int utxoVOUT) { return deleteByIndexSync(r'inscriptionId_utxoTXID_utxoVOUT', [inscriptionId, utxoTXID, utxoVOUT]); } Future> getAllByInscriptionIdUtxoTXIDUtxoVOUT( List inscriptionIdValues, List utxoTXIDValues, List utxoVOUTValues) { final len = inscriptionIdValues.length; assert(utxoTXIDValues.length == len && utxoVOUTValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values .add([inscriptionIdValues[i], utxoTXIDValues[i], utxoVOUTValues[i]]); } return getAllByIndex(r'inscriptionId_utxoTXID_utxoVOUT', values); } List getAllByInscriptionIdUtxoTXIDUtxoVOUTSync( List inscriptionIdValues, List utxoTXIDValues, List utxoVOUTValues) { final len = inscriptionIdValues.length; assert(utxoTXIDValues.length == len && utxoVOUTValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values .add([inscriptionIdValues[i], utxoTXIDValues[i], utxoVOUTValues[i]]); } return getAllByIndexSync(r'inscriptionId_utxoTXID_utxoVOUT', values); } Future deleteAllByInscriptionIdUtxoTXIDUtxoVOUT( List inscriptionIdValues, List utxoTXIDValues, List utxoVOUTValues) { final len = inscriptionIdValues.length; assert(utxoTXIDValues.length == len && utxoVOUTValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values .add([inscriptionIdValues[i], utxoTXIDValues[i], utxoVOUTValues[i]]); } return deleteAllByIndex(r'inscriptionId_utxoTXID_utxoVOUT', values); } int deleteAllByInscriptionIdUtxoTXIDUtxoVOUTSync( List inscriptionIdValues, List utxoTXIDValues, List utxoVOUTValues) { final len = inscriptionIdValues.length; assert(utxoTXIDValues.length == len && utxoVOUTValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values .add([inscriptionIdValues[i], utxoTXIDValues[i], utxoVOUTValues[i]]); } return deleteAllByIndexSync(r'inscriptionId_utxoTXID_utxoVOUT', values); } Future putByInscriptionIdUtxoTXIDUtxoVOUT(Ordinal object) { return putByIndex(r'inscriptionId_utxoTXID_utxoVOUT', object); } Id putByInscriptionIdUtxoTXIDUtxoVOUTSync(Ordinal object, {bool saveLinks = true}) { return putByIndexSync(r'inscriptionId_utxoTXID_utxoVOUT', object, saveLinks: saveLinks); } Future> putAllByInscriptionIdUtxoTXIDUtxoVOUT( List objects) { return putAllByIndex(r'inscriptionId_utxoTXID_utxoVOUT', objects); } List putAllByInscriptionIdUtxoTXIDUtxoVOUTSync(List objects, {bool saveLinks = true}) { return putAllByIndexSync(r'inscriptionId_utxoTXID_utxoVOUT', objects, saveLinks: saveLinks); } } extension OrdinalQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension OrdinalQueryWhere on QueryBuilder { QueryBuilder idEqualTo(Id id) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: id, upper: id, )); }); } QueryBuilder idNotEqualTo(Id id) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: false), ) .addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: false), ); } else { return query .addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: false), ) .addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: false), ); } }); } QueryBuilder idGreaterThan(Id id, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: include), ); }); } QueryBuilder idLessThan(Id id, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: include), ); }); } QueryBuilder idBetween( Id lowerId, Id upperId, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: lowerId, includeLower: includeLower, upper: upperId, includeUpper: includeUpper, )); }); } QueryBuilder inscriptionIdEqualToAnyUtxoTXIDUtxoVOUT(String inscriptionId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'inscriptionId_utxoTXID_utxoVOUT', value: [inscriptionId], )); }); } QueryBuilder inscriptionIdNotEqualToAnyUtxoTXIDUtxoVOUT(String inscriptionId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [], upper: [inscriptionId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [], upper: [inscriptionId], includeUpper: false, )); } }); } QueryBuilder inscriptionIdUtxoTXIDEqualToAnyUtxoVOUT( String inscriptionId, String utxoTXID) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'inscriptionId_utxoTXID_utxoVOUT', value: [inscriptionId, utxoTXID], )); }); } QueryBuilder inscriptionIdEqualToUtxoTXIDNotEqualToAnyUtxoVOUT( String inscriptionId, String utxoTXID) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId], upper: [inscriptionId, utxoTXID], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID], includeLower: false, upper: [inscriptionId], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID], includeLower: false, upper: [inscriptionId], )) .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId], upper: [inscriptionId, utxoTXID], includeUpper: false, )); } }); } QueryBuilder inscriptionIdUtxoTXIDUtxoVOUTEqualTo( String inscriptionId, String utxoTXID, int utxoVOUT) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'inscriptionId_utxoTXID_utxoVOUT', value: [inscriptionId, utxoTXID, utxoVOUT], )); }); } QueryBuilder inscriptionIdUtxoTXIDEqualToUtxoVOUTNotEqualTo( String inscriptionId, String utxoTXID, int utxoVOUT) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID], upper: [inscriptionId, utxoTXID, utxoVOUT], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID, utxoVOUT], includeLower: false, upper: [inscriptionId, utxoTXID], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID, utxoVOUT], includeLower: false, upper: [inscriptionId, utxoTXID], )) .addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID], upper: [inscriptionId, utxoTXID, utxoVOUT], includeUpper: false, )); } }); } QueryBuilder inscriptionIdUtxoTXIDEqualToUtxoVOUTGreaterThan( String inscriptionId, String utxoTXID, int utxoVOUT, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID, utxoVOUT], includeLower: include, upper: [inscriptionId, utxoTXID], )); }); } QueryBuilder inscriptionIdUtxoTXIDEqualToUtxoVOUTLessThan( String inscriptionId, String utxoTXID, int utxoVOUT, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID], upper: [inscriptionId, utxoTXID, utxoVOUT], includeUpper: include, )); }); } QueryBuilder inscriptionIdUtxoTXIDEqualToUtxoVOUTBetween( String inscriptionId, String utxoTXID, int lowerUtxoVOUT, int upperUtxoVOUT, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.between( indexName: r'inscriptionId_utxoTXID_utxoVOUT', lower: [inscriptionId, utxoTXID, lowerUtxoVOUT], includeLower: includeLower, upper: [inscriptionId, utxoTXID, upperUtxoVOUT], includeUpper: includeUpper, )); }); } } extension OrdinalQueryFilter on QueryBuilder { QueryBuilder contentEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'content', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contentGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'content', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contentLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'content', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contentBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'content', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder contentStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'content', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contentEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'content', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contentContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'content', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contentMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'content', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder contentIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'content', value: '', )); }); } QueryBuilder contentIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'content', value: '', )); }); } QueryBuilder idEqualTo(Id value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: value, )); }); } QueryBuilder idGreaterThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idLessThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idBetween( Id lower, Id upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'id', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder inscriptionIdEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'inscriptionId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'inscriptionId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'inscriptionId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'inscriptionId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'inscriptionId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'inscriptionId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'inscriptionId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'inscriptionId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder inscriptionIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'inscriptionId', value: '', )); }); } QueryBuilder inscriptionIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'inscriptionId', value: '', )); }); } QueryBuilder inscriptionNumberEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'inscriptionNumber', value: value, )); }); } QueryBuilder inscriptionNumberGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'inscriptionNumber', value: value, )); }); } QueryBuilder inscriptionNumberLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'inscriptionNumber', value: value, )); }); } QueryBuilder inscriptionNumberBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'inscriptionNumber', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder utxoTXIDEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'utxoTXID', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'utxoTXID', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'utxoTXID', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'utxoTXID', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'utxoTXID', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'utxoTXID', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'utxoTXID', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'utxoTXID', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder utxoTXIDIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'utxoTXID', value: '', )); }); } QueryBuilder utxoTXIDIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'utxoTXID', value: '', )); }); } QueryBuilder utxoVOUTEqualTo( int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'utxoVOUT', value: value, )); }); } QueryBuilder utxoVOUTGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'utxoVOUT', value: value, )); }); } QueryBuilder utxoVOUTLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'utxoVOUT', value: value, )); }); } QueryBuilder utxoVOUTBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'utxoVOUT', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder walletIdEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'walletId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'walletId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'walletId', value: '', )); }); } QueryBuilder walletIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'walletId', value: '', )); }); } } extension OrdinalQueryObject on QueryBuilder {} extension OrdinalQueryLinks on QueryBuilder {} extension OrdinalQuerySortBy on QueryBuilder { QueryBuilder sortByContent() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'content', Sort.asc); }); } QueryBuilder sortByContentDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'content', Sort.desc); }); } QueryBuilder sortByInscriptionId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionId', Sort.asc); }); } QueryBuilder sortByInscriptionIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionId', Sort.desc); }); } QueryBuilder sortByInscriptionNumber() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionNumber', Sort.asc); }); } QueryBuilder sortByInscriptionNumberDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionNumber', Sort.desc); }); } QueryBuilder sortByUtxoTXID() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoTXID', Sort.asc); }); } QueryBuilder sortByUtxoTXIDDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoTXID', Sort.desc); }); } QueryBuilder sortByUtxoVOUT() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoVOUT', Sort.asc); }); } QueryBuilder sortByUtxoVOUTDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoVOUT', Sort.desc); }); } QueryBuilder sortByWalletId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.asc); }); } QueryBuilder sortByWalletIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.desc); }); } } extension OrdinalQuerySortThenBy on QueryBuilder { QueryBuilder thenByContent() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'content', Sort.asc); }); } QueryBuilder thenByContentDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'content', Sort.desc); }); } QueryBuilder thenById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder thenByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } QueryBuilder thenByInscriptionId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionId', Sort.asc); }); } QueryBuilder thenByInscriptionIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionId', Sort.desc); }); } QueryBuilder thenByInscriptionNumber() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionNumber', Sort.asc); }); } QueryBuilder thenByInscriptionNumberDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'inscriptionNumber', Sort.desc); }); } QueryBuilder thenByUtxoTXID() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoTXID', Sort.asc); }); } QueryBuilder thenByUtxoTXIDDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoTXID', Sort.desc); }); } QueryBuilder thenByUtxoVOUT() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoVOUT', Sort.asc); }); } QueryBuilder thenByUtxoVOUTDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'utxoVOUT', Sort.desc); }); } QueryBuilder thenByWalletId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.asc); }); } QueryBuilder thenByWalletIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.desc); }); } } extension OrdinalQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByContent( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'content', caseSensitive: caseSensitive); }); } QueryBuilder distinctByInscriptionId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'inscriptionId', caseSensitive: caseSensitive); }); } QueryBuilder distinctByInscriptionNumber() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'inscriptionNumber'); }); } QueryBuilder distinctByUtxoTXID( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'utxoTXID', caseSensitive: caseSensitive); }); } QueryBuilder distinctByUtxoVOUT() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'utxoVOUT'); }); } QueryBuilder distinctByWalletId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive); }); } } extension OrdinalQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder contentProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'content'); }); } QueryBuilder inscriptionIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'inscriptionId'); }); } QueryBuilder inscriptionNumberProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'inscriptionNumber'); }); } QueryBuilder utxoTXIDProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'utxoTXID'); }); } QueryBuilder utxoVOUTProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'utxoVOUT'); }); } QueryBuilder walletIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'walletId'); }); } }