FR: configuration to import custom python functions
還沒有人認領這個 Issue。
評估
研究方向
從 LiteCLI 的設定處理和 SQLite 的 Connection.create_function() 文件開始,接著檢視 issue 中連結的 importlib 作法。定義支援的 path:callable 語法,以及是否包含聚合函式、視窗函式和定序函式;完成表示已設定的自訂函式可以從 SQL 中呼叫。
由索引模型根據 Issue 內容生成。
描述
LiteCLI is built in Python, and the Python bindings for SQLite make it possible to bind custom functions you can then call from SQL, see the Connection.create_function() documentation.
I'd love to see litecli support defining your own custom functions for use in SQL queries. This could be in the form of compiling the source code for such a function embedded in the config file, or to support importing functions from Python modules (I'd suggest a path:callable syntax, where you use importlib to import path, then get the callable name from the imported module to register as a functoin).
Bonus points if you can also register aggregation, window and collation functions!
- 主要語言
- Python
- 星號
- 3.3k
- 分支
- 99
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
dbcli/litecli 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
-
can't run any llm command for my local db. error: Preparing schema information to feed the llm near "1": syntax error可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 3/5 1-2 天 新手友好度 45/100
-
Automatically decode hex for BLOB fields.可能已有人在做 @dbcli-symphony 於 131 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
-
symphony:review
難度 2/5 1-3 小時 新手友好度 45/100
-
難度 2/5 1-3 小時 新手友好度 25/100
相似的 Issue
-
Examples say cnx未關閉documentation embedded
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
Alishahryar1/free-claude-code#2111 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
namespace operations
難度 2/5 1-3 小時 新手友好度 72/100
EclipseFdn/open-vsx.org#14373 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆