Open
Description
Steps to reproduce
To reproduce this problem use lb4 discover in a MySQL table having a BLOB field. It will generate a model where BLOB is mapped to binary and does not start.
Current Behavior
The lb4 discover blob fields as binary fields
Expected Behavior
Blob fields should be discovered as buffer type.
Link to reproduction sandbox
Additional information
The created model property is like
@property({
type: 'Binary',
required: true,
length: 65535,
mysql: {columnName: 'photo', dataType: 'blob', dataLength: 65535, dataPrecision: null, dataScale: null, nullable: 'N'},
})
// Binary is not defined so compiler fails
// it should be Buffer
photo: Binary;
Related Issues
No similar issues found.
See Reporting Issues for more tips on writing good issues