mindsdb handlers 类型简单说明

mindsdb 按照设计,对于handler 分为了两大类(官方文档的介绍),data handlers 以及ml handlers,但是实际上从github 上的介绍来说还包含一个app handlers ,以下对于几种handler 作一个简单的说明

data handlers

作为数据库与mindsdb 的桥,一般面向的是数据库方面的开发,通过如下模式使用

CREATE DATABASE integration_name
WITH ENGINE = 'postgres', 
PARAMETERS = {
'host': '127.0.0.1',
'user': 'root',
'password': 'password'
};

ml handlers

作为ml 框架与mindsdb 的桥,一般在开发的时候会使用到mindsdb 提供的一些周边框架,通过如下模式使用

CREATE ML_ENGINE [IF NOT EXISTS] ml_engine_name
FROM handler_name
[USING argument_key = argument_value];

app handlers (api handlers)

作为应用与mindsdb 的桥,方便外部应用的数据注册到mindsdb 中作为数据源,比如github等类型的,与data handlers 的使用是一致的

CREATE DATABASE mindsdb_github
WITH ENGINE = 'github',
PARAMETERS = {
  "repository": "mindsdb/mindsdb"
};

说明

以上是对于mindsdb 支持的handlers 的一个简单说明,有利于更好的学习,后边会介绍下实际handlers 的开发

参考资料

https://docs.mindsdb.com/mindsdb-handlers

https://docs.mindsdb.com/mindsdb_sql/sql/create/ml-engine

https://docs.mindsdb.com/contribute/ml-handlers

https://github.com/mindsdb/mindsdb/blob/main/docs/contribute/data-handlers.mdx

https://github.com/mindsdb/mindsdb/blob/main/docs/contribute/app-handlers.mdx

https://github.com/mindsdb/mindsdb/tree/main/mindsdb/integrations/handlers/github_handler

https://github.com/mindsdb/mindsdb/tree/main/mindsdb/integrations/handlers/twitter_handler

https://github.com/mindsdb/mindsdb/tree/main/mindsdb/integrations/handlers/mysql_handler

https://github.com/mindsdb/mindsdb/blob/3d9090acb0b8b3b0e2a96e2c93dad436f5ebef90/mindsdb/integrations/libs/base.py#L123

https://github.com/mindsdb/dataprep_ml

posted on   荣锋亮  阅读(2)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· 上周热点回顾(2.17-2.23)
· 如何使用 Uni-app 实现视频聊天(源码,支持安卓、iOS)
· spring官宣接入deepseek,真的太香了~
历史上的今天:
2024-02-20 native-lib-loader java native 库的java 包
2024-02-20 dlt 与dbt的直接集成简单试用
2022-02-20 tapestry-pipeline 开源data pipeline 调度工具
2022-02-20 openmetadata 0.8 发布了
2022-02-20 pf4j 注入spring controller 的几种方法
2021-02-20 golang 几种 filter的实现包
2021-02-20 dremio 节点监控

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示