-
### Version
1.27.0
### What happened?
I am trying to create a query that will return a set of results based on a dynamic filter.
I am using the pattern described here: https://github.com/sqlc-dev/…
-
For inserts Exposed will (for columns with no explicit value) populate all inserts with defaults/null from the Exposed table object and not actually use the one defined in the actual table on the data…
spand updated
1 month ago
-
### Version
1.23.0
### What happened?
When using `sqlc.embed` on something in combination with a `LEFT JOIN`, meaning that the embedded table may be null, sqlc fails to parse the result when …
-
Per chat in gitter, it would be great to accumulate a list of best practices in doobie.
As some examples:
* tucking a way a Statements object that contains all of the sql for a DAO, ala, https:…
-
### Version
1.26.0
### What happened?
Been playing with this since yesterday - I have a sample query that is modified to remove columns and change table names.
Starting to dig into this in earne…
-
In my project I have invoked `scheduledActualization()` while creating `BalancedClickhouseDataSource` which enable/disable urls in clickhouse cluster based on health check of node in cluster.
Some ti…
-
Sadly if you run certain methods they behave differently of what they are expected.
-
```
比如修改UpdateTest.java中的如下测试方法:
@Test
public void batch_update_relation() {
dao.updateRelation( Fighter.class,
"base",
Chain.ma…
-
```
问题产生的条件:
one2one双向映射 使用insertWith(obj, null)插入其中任意一方。
发生问题的调用代码:
Pet tom = new Pet("tom");
Master i = new Master("myname");
i.setPet(tom);
tom.setMaster(i);
dao.insertWith(i, …
-
【Week02 作业题目】
1. 我们在数据库操作的时候,比如 dao 层中当遇到一个 sql.ErrNoRows 的时候,是否应该 Wrap 这个 error,抛给上层。为什么,应该怎么做请写出代码?
【week2作业参考答案】
1. 不应该, 因为dao层它就是根因,无需wrap,直接原样抛给上层调用方做决策即可.
//代码示例:
//dao:
…