class (metadata[, schema=None])

    Metadata can be extracted from a database by instantiating an . Rather than instantiating this class directly, it is recommended to use the factory method .

    • Creates an instance suitable for use with the given database.

      Usage:

    • Parameters:
      • skip_invalid (bool) – Skip tables whose names are invalid python identifiers.
      • literal_column_names (bool) – Use column-names as-is. By default, column names are “python-ized”, i.e. mixed-case becomes lower-case.
      • bare_fieldsSQLite-only. Do not specify data-types for introspected columns.
      Returns:

      A dictionary mapping table-names to model classes.

      Introspect the database, reading in the tables, columns, and foreign key constraints, then generate a dictionary mapping each database table to a dynamically-generated Model class.