lance-format/lance

working with pydantic model instances

Open

#1 106 ouverte le 30 juil. 2023

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Rust (695 forks)github user discovery
A-pythonenhancementgood first issue

Métriques du dépôt

Stars
 (6 582 stars)
Métriques de merge PR
 (Merge moyen 6j 1h) (219 PRs mergées en 30 j)

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.

Guide contributeur