lance-format/lance

working with pydantic model instances

Open

#1,106 创建于 2023年7月30日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Rust (695 fork)github user discovery
A-pythonenhancementgood first issue

仓库指标

Star
 (6,582 star)
PR 合并指标
 (平均合并 6天 1小时) (30 天内合并 219 个 PR)

描述

  1. Currently we still require an explicit call to pydantic_to_schema when creating a table. Instead, we can create a LanceTable.from_pydantic_model() method that infers both the name and the schema. For the name we'll convert to snake_case automatically.

  2. To add pydantic model instances, currently we require the user to explicitly convert to a dictionary. Instead, we could just automatically do it under the hood.

贡献者指南