rope.contrib.autoimport.models ============================== .. py:module:: rope.contrib.autoimport.models Classes ------- .. autoapisummary:: rope.contrib.autoimport.models.FinalQuery rope.contrib.autoimport.models.Query rope.contrib.autoimport.models.Model rope.contrib.autoimport.models.Metadata rope.contrib.autoimport.models.Alias rope.contrib.autoimport.models.Name rope.contrib.autoimport.models.Package Module Contents --------------- .. py:class:: FinalQuery(query) .. py:method:: explain() .. py:class:: Query(query: str, columns: List[str]) .. py:attribute:: query .. py:attribute:: columns .. py:method:: select(*columns: str) .. py:method:: select_star() .. py:method:: where(where_clause: str) .. py:method:: insert_into() -> FinalQuery .. py:method:: drop_table() -> FinalQuery .. py:method:: delete_from() -> FinalQuery .. py:class:: Model Bases: :py:obj:`abc.ABC` Helper class that provides a standard way to create an ABC using inheritance. .. py:property:: table_name :type: str :abstractmethod: .. py:property:: schema :type: Dict[str, str] :abstractmethod: .. py:method:: create_table(connection) :classmethod: .. py:class:: Metadata Bases: :py:obj:`Model` Helper class that provides a standard way to create an ABC using inheritance. .. py:attribute:: table_name :value: 'metadata' .. py:attribute:: schema .. py:attribute:: columns :value: ['version_hash', 'hash_data', 'created_at'] .. py:attribute:: objects .. py:method:: create_table(connection) :classmethod: .. py:class:: Alias Bases: :py:obj:`Model` Helper class that provides a standard way to create an ABC using inheritance. .. py:attribute:: table_name :value: 'aliases' .. py:attribute:: schema .. py:attribute:: columns :value: ['alias', 'module'] .. py:attribute:: objects .. py:method:: create_table(connection) :classmethod: .. py:attribute:: modules .. py:attribute:: search_modules_with_alias .. py:class:: Name Bases: :py:obj:`Model` Helper class that provides a standard way to create an ABC using inheritance. .. py:attribute:: table_name :value: 'names' .. py:attribute:: schema .. py:attribute:: columns :value: ['name', 'module', 'package', 'source', 'type'] .. py:attribute:: objects .. py:method:: create_table(connection) :classmethod: .. py:attribute:: search_submodule_like .. py:attribute:: search_module_like .. py:attribute:: import_assist .. py:attribute:: search_by_name_like .. py:attribute:: search_by_name .. py:attribute:: delete_by_module_name .. py:class:: Package Bases: :py:obj:`Model` Helper class that provides a standard way to create an ABC using inheritance. .. py:attribute:: table_name :value: 'packages' .. py:attribute:: schema .. py:attribute:: columns :value: ['package', 'path'] .. py:attribute:: objects .. py:attribute:: delete_by_package_name .. py:method:: create_table(connection) :classmethod: