• Y
    introduce `conn.data_source_exists?` and `conn.data_sources`. · 152b85f0
    Yves Senn 提交于
    These new methods are used from the Active Record model layer to
    determine which relations are viable to back a model. These new methods
    allow us to change `conn.tables` in the future to only return tables and
    no views. Same for `conn.table_exists?`.
    
    The goal is to provide the following introspection methods on the
    connection:
    
    * `tables`
    * `table_exists?`
    * `views`
    * `view_exists?`
    * `data_sources` (views + tables)
    * `data_source_exists?` (views + tables)
    152b85f0
schema_test.rb 21.6 KB