Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 54 forks source link

BLOB type: Field type not recognised: Uint8List! #196

Open Skuallpa opened 3 years ago

Skuallpa commented 3 years ago

Does jaguar_orm support creating field of type BLOB for SQFlite?

When trying to generate the bean using the following model

@Column()
Uint8List data;

I got the following error:

`Field protobuffer has exception: Exception: Field type not recognised: Uint8List!

0 Field.vType (package:jaguar_orm_gen/src/model/model.dart:21:7)`

From sqflite package, BLOB is a supported type which corresponds to Dart type: Uint8List.

I didn't find anything in the jaguar_query_sqflite package saying that this type is not supported.

Is there a specific annotation for type Uint8List?

Thanks in advance