jaguar-orm / sqflite

Flutter and sqflite example for Jaguar query
39 stars 7 forks source link

SqfliteAdapter is asking for implementation #11

Open prabinshrestha opened 5 years ago

prabinshrestha commented 5 years ago

Compiler message: file:///home/example/flutter/.pub-cache/hosted/pub.dartlang.org/jaguar_query_sqflite-2.2.5/lib/src/adapter.dart:12:7: Error: The non-abstract class 'SqfliteAdapter' is missing implementations for these members:

class SqfliteAdapter implements Adapter { ^^^^^^^^^^^^^^ file:///home/example/flutter/.pub-cache/hosted/pub.dartlang.org/jaguar_query-2.2.6/lib/src/adapter/adapter.dart:46:16: Context: 'Adapter.alter' is defined here. Future alter(Alter statement);

pubspec dependency ..............

dependencies: flutter: sdk: flutter

cupertino_icons: ^0.1.2

json_annotation: ^2.0.0

jaguar_retrofit: ^2.8.6

build_config: ^0.3.1+4 json_serializable: ^2.0.0 chopper: ^2.0.0

build_daemon: ^0.4.0

sqflite: jaguar_orm: ^2.2.5 jaguar_query_sqflite: ^2.2.5

dev_dependencies: flutter_test: sdk: flutter

https://iirokrankka.com/2018/02/08/json-and-serialization/

build_runner: ^1.0.0

jaguar_retrofit_gen: ^2.8.6

chopper_generator: ^2.0.0 jaguar_orm_gen: ^2.2.25

tejainece commented 5 years ago

@jaumard Can you please implement alter statement for sqlite?

@prabinshrestha I would suggest limiting jaguar_query version to `2.2.4``in pubspec.yaml until this has been fixed.

bangonkali commented 5 years ago

any news on this?

tejainece commented 5 years ago

@bangonkali I will work on this.

ghost commented 5 years ago

Any News on a fix? sitting with same issue on 2.2.5 and continue happening in 2.2.4

ghost commented 5 years ago

Comment out Future<void> alter(Alter statement); in adapter.dart file. this fixed the issue