blade-jdbc
blade-jdbc copied to clipboard
๐ move to https://github.com/biezhi/anima
่ตฐๅฐ่ฟ้็ๆถๅๆฅ็้ ``` @GetRoute("user") @JSON fun getUserList() { val allUser = User().findAll() println(allUser) } ``` ``` org.sql2o.Sql2oException: Could not acquire a connection from DataSource - Communications link failure The last packet...
In the next version, see [anima](https://github.com/biezhi/anima)
org.sql2o.Sql2oException: Keys were not fetched from database. Please set the returnGeneratedKeys parameter in the createQuery() method to enable fetching of generated keys. use postgresql id VARCHAR(32) PRIMARY KEY set uuid
example๏ผ List users = user.findAll(Limit.of(5,5),OrderBy.desc("id"));
PSQLException: This connection has been closed Use Base.atomic is error No use is normal
``` java String site_title = Options.db.where("`key`", "site_title").findOne().get("value"); String site_subtitle = Options.db.where("`key`", "site_subtitle").findOne().get("value"); ```
``` java return db.sql("select id, title, intro, create_time from t_post").where("`status` = ?", 1).page(page, limit); ```