Nexus's ORM does this by generating data access procs.

Here's the YAML for Nexus Core models: 
<https://github.com/jfilby/nexus/blob/main/conf/core/models/models.yaml>

Here's one of the generated data access files: 
<https://github.com/jfilby/nexus/blob/main/src/nexus/core/data_access/account_user_data.nim>

Here's the generated model types file: 
<https://github.com/jfilby/nexus/blob/main/src/nexus/core/types/model_types.nim>

The model_types.nim file includes stringified types for non-string fields, but 
that's optional. The project is in active development: 
<https://github.com/jfilby/nexus>

Reply via email to