lance-format/lance

working with pydantic model instances

Open

#1.106 aberto em 30 de jul. de 2023

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (695 forks)github user discovery
A-pythonenhancementgood first issue

Métricas do repositório

Stars
 (6.582 stars)
Métricas de merge de PR
 (Mesclagem média 6d 1h) (219 fundiu PRs em 30d)

Description

  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.

Guia do colaborador