          sync-database-active-tables!
          sync-database-with-tracking!
          sync-field!
-         sync-metabase-metadata-table!
          sync-table-active-fields-and-pks!
          sync-table-fks!
          sync-table-fields-metadata!

                   :or {full-sync? true}}]
  (binding [qp/*disable-qp-logging* true]
    (driver/sync-in-context driver @(:db table) (fn []
                                                  ;; TODO: create/update/fetch table
                                                  (sync-database-active-tables! driver [table] :analyze? full-sync?)
                                                  (events/publish-event :table-sync {:table_id (:id table)})))))


      (log/error (u/format-color 'red "Unable to update row_count for '%s': %s" (:name table) (.getMessage e))))))


;; ### 3) sync-table-fields-metadata!  (full sync ONLY)

(defn- sync-table-fields-metadata!
  "Call `sync-field!` for every active Field for TABLE."
