Skip to content

lb4 discover does not handle BLOB fields #6295

Open
@flaviogoncalves

Description

@flaviogoncalves

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestTasks ready for new contributors to work onModel DiscoveryIssues related to discovery of model definitions from (SQL) databasesbugdb:MySQLTopics specific to MySQLdb:OracleTopics specific to Oracle databasedb:PostgreSQLTopics specific to PostgreSQLgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions