Skip to content

feat: Allow specifying type for field in DB #69

@codekeyz

Description

@codekeyz
@Table(converters: [SessionStatusConverter()])
class Session extends Entity<Session> {
  @primaryKey
  final int id;

  final SessionStatus status;

Currently, Yaroorm automatically stores SessionStatus as String COLUMN in the Database. We should be able to specify a Type eg: INTEGER, this will be more performant.

Something like this

class Session extends Entity<Session> {
  @primaryKey
  final int id;
  
  @TableColumn(type: int)
  final SessionStatus status;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions