queryx: add binding transformer

This commit is contained in:
Nikita Karmatskikh
2021-11-23 21:58:26 +03:00
committed by Michal Jan Matczuk
parent 5e98fb6f71
commit 504f6523d9
4 changed files with 94 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ func (s Session) ContextQuery(ctx context.Context, stmt string, names []string)
Query: s.Session.Query(stmt).WithContext(ctx),
Names: names,
Mapper: s.Mapper,
tr: DefaultBindTransformer,
}
}
@@ -62,6 +63,7 @@ func (s Session) Query(stmt string, names []string) *Queryx {
Query: s.Session.Query(stmt),
Names: names,
Mapper: s.Mapper,
tr: DefaultBindTransformer,
}
}