lance-format/lance

working with pydantic model instances

Open

#1106 aperta il 30 lug 2023

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Rust (695 fork)github user discovery
A-pythonenhancementgood first issue

Metriche repository

Star
 (6582 star)
Metriche merge PR
 (Merge medio 6g 1h) (219 PR mergiate in 30 g)

Descrizione

  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.

Guida contributor