1

Is it possible to configure sqldelight to prefix all the getters and setters?

CREATE TABLE foo {
  bar TEXT 
}

bar() -> getBar()

Tobias
  • 7,282
  • 6
  • 63
  • 85

1 Answers1

1

At this time no, and it's unlikely we'd add it in since its a style choice we made early on. You can do it from the SQLite side by naming your column getBar instead of bar but thats probably not better.

If this is a requirement from some other library I would recommend either changing the column name like mentioned above or creating new methods with the name you want in the implementation that just return the normal method result.

Anstrong
  • 734
  • 3
  • 7
  • 1
    Thank you for the quick answere. I'm fine with not having getters and setters prefixed. I was just asking because I'm going to refactor a bigger project and wanted to make sure not to miss anything and do unecessary work. – Tobias Jul 08 '16 at 21:58