zuisong
zuisong
想了一下,这种中缀表达式的dsl对换行不太友好,可能要提供多种dsl的写法,这种写法很直观,可以作为其中一种写法 > 推荐一种 DSL 的写法: > > > > ```kotlin > > val query = database > > .from(Employees) > > .select((CASE(Employees.name) WHEN "vince" THEN 1 WHEN "mary" THEN 2...
> 中缀函数并没有禁止用户使用传统方式调用,不存在对换行不友好的问题,写成链式就好了: > > ```kotlin > val expr = CASE(Employees.name) > .WHEN("vince").THEN(1) > .WHEN("mary").THEN(2) > .ELSE(3) > ``` > > 不带参数: > > ```kotlin > val expr = CASE() >...
> 大概浏览了你的代码,有三个比较大的问题需要修改: > > * DSL 的写法保留一种就好了,太多的写法会引发混乱,建议把你之前的遗留代码删了 > * `SqlExpressionVisitor.visitCaseWhen` 不要留空 > * 所有 public 的类和函数都应该添加文档注释,你可以在你本地运行 `./gradlew clean build` 试试,不符合规范的无法成功构建 好的, dsl 我更新了一下。现在第一个then 依然要传 expression , 不能传变量进来, 暂时没有想到好办法解决这个问题 这对上面这些问题, 我今天晚些时候会修复
问题都改好了, 麻烦再看一下呢, 有什么问题我继续改进一下 😄
> I haven't verified it yet but It seems the HTTP library we are using (i.e reqwest) supports forcing either IPv4 or IPv6 by setting the client's `local_address`, see [seanmonstar/reqwest#584...
This is intentional. see #109
I am willing to try to fix this issue. When making a request to an HTTPS website, a Content-Length: 0 request header is added. However, for HTTP websites, this request...
https://github.com/zuisong/gemini-openai-proxy This might be useful. I'm already using it.
```ts import { importMaps } from "https://raw.githubusercontent.com/zuisong/vite-deno-import-map-plugin/main/vite-deno-import-map-plugin.ts"; export default defineConfig({ plugins: [ importMaps( () => JSON.parse( Deno.readTextFileSync("./import_map.json"), ), ), denoResolve(), ], }); ``` I wrote a vite plugin for support...
I want to help the author too.