aito.v2.csv_upload.CsvUploadResult

class aito.v2.csv_upload.CsvUploadResult(table: str, rows: int, inferred: ~typing.Dict[str, str], via: str, created: bool, warnings: ~typing.List[str] = <factory>)

Bases: object

what upload_csv did

Methods

Attributes

table

the collection

rows

rows inserted

inferred

column name -> type ('Text', 'Decimal', ...), as created or as declared

via

'server': the engine imported the CSV; 'client': typed here, same rules

created

whether the collection was created by this call

warnings

created: bool

whether the collection was created by this call

inferred: Dict[str, str]

column name -> type ('Text', 'Decimal', …), as created or as declared

rows: int

rows inserted

table: str

the collection

via: str

'server': the engine imported the CSV; 'client': typed here, same rules