You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from macros import getCustomPragmaVal
from stew/shims/macros as stew_macros import hasCustomPragmaFixed, getCustomPragmaFixed
templatedbColumnName*(name: string, primaryKey: bool=false) {.pragma.}
## Specifies the database column name for the object propertytypeMyType=object
name {.dbColumnName("blah", true).}: stringlet myType =MyType(name: "eric")
echotype myType.type.getCustomPragmaFixed("name", dbColumnName)
echotype myType.name.getCustomPragmaVal(dbColumnName)
Expected results:
Actual results:
Reproduction:
The text was updated successfully, but these errors were encountered: