sqlgen icon indicating copy to clipboard operation
sqlgen copied to clipboard

Support readonly model

Open si3nloong opened this issue 7 months ago • 0 comments

Some model do not required to has mutation ability, beside we need to allow user to configure the model as readonly.

Readonly model should only has following footprint :

  • Addrs
  • FindOneByPKStmt

This also mean that the following functions will not be generated.

  • Values
  • InsertPlaceholders
  • InsertOneStmt
  • UpdateOneByPKStmt
  • DeleteOneByPKStmt

si3nloong avatar Jul 19 '24 10:07 si3nloong