v1.8.0
1 - explicit mapping function is no longer required on FromSqlRows(). built-in mapper added
cursor := FromSqlRows[UserModel](ctx, conn,"select * from Test.users where id>?", id)
if cursor.Initiated {
for v := range cursor.FilterStream(func(model UserModel) bool {
return model.Age > 25
}).Throttle(time.Millisecond * 1000).Channel {
/// business logic
}
}2 - deprecations removed (default collections api and etc)
3 - memory enhancement for Thor Collections Api
4 - 'zdb' tags renamed to 'zql' tags. the mapping contract.