Skip to content
Snippets Groups Projects
Commit 65ebea92 authored by Cam Saül's avatar Cam Saül
Browse files

metabase.mock.* -> metabase.test.mock.* :100:

parent ee5ba9ec
Branches
Tags
No related merge requests found
(ns metabase.mock.moviedb
"A simple relational schema based mocked for testing. 4 tables w/ some FKs."
(:require [metabase.driver :as driver]))
(def ^:const moviedb-tables
"Docstring"
{"movies" {:name "movies"
:schema nil
:fields #{{:name "id"
:base-type :IntegerField}
{:name "title"
:base-type :TextField}
{:name "filming"
:base-type :BooleanField}}}
"actors" {:name "actors"
:schema nil
:fields #{{:name "id"
:base-type :IntegerField}
{:name "name"
:base-type :TextField}}}
"roles" {:name "roles"
:schema nil
:fields #{{:name "id"
:base-type :IntegerField}
{:name "movie_id"
:base-type :IntegerField}
{:name "actor_id"
:base-type :IntegerField}
{:name "character"
:base-type :TextField}
{:name "salary"
:base-type :DecimalField}}
:fks #{{:fk-column-name "movie_id"
:dest-table {:name "movies"
:schema nil}
:dest-column-name "id"}
{:fk-column-name "actor_id"
:dest-table {:name "actors"
:schema nil}
:dest-column-name "id"}}}
"reviews" {:name "reviews"
:schema nil
:fields #{{:name "id"
:base-type :IntegerField}
{:name "movie_id"
:base-type :IntegerField}
{:name "stars"
:base-type :IntegerField}}
:fks #{{:fk-column-name "movie_id"
:dest-table {:name "movies"
:schema nil}
:dest-column-name "id"}}}})
(defrecord MovieDbDriver []
clojure.lang.Named
(getName [_] "MovieDbDriver"))
(extend MovieDbDriver
driver/IDriver
(merge driver/IDriverDefaultsMixin
{:analyze-table (constantly nil)
:describe-database (fn [_ {:keys [exclude-tables]}]
(let [tables (for [table (vals moviedb-tables)
:when (not (contains? exclude-tables (:name table)))]
(select-keys table [:schema :name]))]
{:tables (set tables)}))
:describe-table (fn [_ _ table]
(-> (get moviedb-tables (:name table))
(dissoc :fks)))
:describe-table-fks (fn [_ _ table]
(-> (get moviedb-tables (:name table))
:fks
set))
:features (constantly #{:foreign-keys})
:details-fields (constantly [])
:table-rows-seq (constantly [{:keypath "movies.filming.description", :value "If the movie is currently being filmed."}
{:keypath "movies.description", :value "A cinematic adventure."}])}))
(driver/register-driver! :moviedb (MovieDbDriver.))
(def ^:const moviedb-raw-tables
"Docstring"
[{:schema nil
:database_id true
:columns [{:raw_table_id true
:name "id"
:fk_target_column_id false
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "name"
:fk_target_column_id false
:updated_at true
:details {:base-type "TextField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}]
:name "actors"
:updated_at true
:details {}
:active true
:id true
:created_at true}
{:schema nil
:database_id true
:columns [{:raw_table_id true
:name "filming"
:fk_target_column_id false
:updated_at true
:details {:base-type "BooleanField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "id"
:fk_target_column_id false
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "title"
:fk_target_column_id false
:updated_at true
:details {:base-type "TextField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}]
:name "movies"
:updated_at true
:details {}
:active true
:id true
:created_at true}
{:schema nil
:database_id true
:columns [{:raw_table_id true
:name "id"
:fk_target_column_id false
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "movie_id"
:fk_target_column_id true
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "stars"
:fk_target_column_id false
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}]
:name "reviews"
:updated_at true
:details {}
:active true
:id true
:created_at true}
{:schema nil
:database_id true
:columns [{:raw_table_id true
:name "actor_id"
:fk_target_column_id true
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "character"
:fk_target_column_id false
:updated_at true
:details {:base-type "TextField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "id"
:fk_target_column_id false
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "movie_id"
:fk_target_column_id true
:updated_at true
:details {:base-type "IntegerField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}
{:raw_table_id true
:name "salary"
:fk_target_column_id false
:updated_at true
:details {:base-type "DecimalField"}
:active true
:id true
:is_pk false
:created_at true
:column_type nil}]
:name "roles"
:updated_at true
:details {}
:active true
:id true
:created_at true}])
(def ^:const moviedb-tables-and-fields
"Docstring"
[{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "actors"
:fields [{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type :name
:name "name"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Name"
:created_at true
:base_type :TextField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Actors"
:created_at true}
{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "movies"
:fields [{:description nil
:table_id true
:special_type nil
:name "filming"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Filming"
:created_at true
:base_type :BooleanField}
{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type nil
:name "title"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Title"
:created_at true
:base_type :TextField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Movies"
:created_at true}
{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "reviews"
:fields [{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type :fk
:name "movie_id"
:fk_target_field_id true
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Movie ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type nil
:name "stars"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Stars"
:created_at true
:base_type :IntegerField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Reviews"
:created_at true}
{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "roles"
:fields [{:description nil
:table_id true
:special_type :fk
:name "actor_id"
:fk_target_field_id true
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Actor ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type nil
:name "character"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Character"
:created_at true
:base_type :TextField}
{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type :fk
:name "movie_id"
:fk_target_field_id true
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Movie ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type nil
:name "salary"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id true
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Salary"
:created_at true
:base_type :DecimalField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Roles"
:created_at true}])
This diff is collapsed.
(ns metabase.mock.toucanery
"A document style database mocked for testing.
This is a `:dynamic-schema` db with `:nested-fields`.
Most notably meant to serve as a representation of a Mongo database."
(:require [metabase.driver :as driver]))
(def ^:const toucanery-tables
"Docstring"
{"transactions" {:name "transactions"
:schema nil
:fields #{{:name "id"
:pk? true
:base-type :IntegerField}
{:name "ts"
:base-type :BigIntegerField
:special-type :timestamp_milliseconds}
{:name "toucan"
:base-type :DictionaryField
:nested-fields #{{:name "name"
:base-type :TextField}
{:name "details"
:base-type :DictionaryField
:nested-fields #{{:name "age"
:base-type :IntegerField}
{:name "weight"
:special-type :category
:base-type :DecimalField}}}}}
{:name "buyer"
:base-type :DictionaryField
:nested-fields #{{:name "name"
:base-type :TextField}
{:name "cc"
:base-type :TextField}}}}}
"employees" {:name "employees"
:schema nil
:fields #{{:name "id"
:base-type :IntegerField}
{:name "name"
:base-type :TextField}}}})
(defrecord ToucaneryDriver []
clojure.lang.Named
(getName [_] "ToucaneryDriver"))
(extend ToucaneryDriver
driver/IDriver
(merge driver/IDriverDefaultsMixin
{:analyze-table (constantly nil)
:describe-database (fn [_ {:keys [exclude-tables]}]
(let [tables (for [table (vals toucanery-tables)
:when (not (contains? exclude-tables (:name table)))]
(select-keys table [:schema :name]))]
{:tables (set tables)}))
:describe-table (fn [_ _ table]
(get toucanery-tables (:name table)))
:features (constantly #{:dynamic-schema :nested-fields})
:details-fields (constantly [])
:table-rows-seq (constantly [{:keypath "movies.filming.description", :value "If the movie is currently being filmed."}
{:keypath "movies.description", :value "A cinematic adventure."}])}))
(driver/register-driver! :toucanery (ToucaneryDriver.))
(def ^:const toucanery-raw-tables-and-columns
"Docstring"
[{:schema nil
:database_id true
:columns []
:name "employees"
:updated_at true
:details {}
:active true
:id true
:created_at true}
{:schema nil
:database_id true
:columns []
:name "transactions"
:updated_at true
:details {}
:active true
:id true
:created_at true}])
(def ^:const toucanery-tables-and-fields
"Docstring"
[{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "employees"
:fields [{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type :name
:name "name"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Name"
:created_at true
:base_type :TextField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Employees"
:created_at true}
{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "transactions"
:fields [{:description nil
:table_id true
:special_type nil
:name "age"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Age"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type nil
:name "buyer"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Buyer"
:created_at true
:base_type :DictionaryField}
{:description nil
:table_id true
:special_type nil
:name "cc"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Cc"
:created_at true
:base_type :TextField}
{:description nil
:table_id true
:special_type nil
:name "details"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Details"
:created_at true
:base_type :DictionaryField}
{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type :name
:name "name"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Name"
:created_at true
:base_type :TextField}
{:description nil
:table_id true
:special_type :name
:name "name"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Name"
:created_at true
:base_type :TextField}
{:description nil
:table_id true
:special_type nil
:name "toucan"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Toucan"
:created_at true
:base_type :DictionaryField}
{:description nil
:table_id true
:special_type :timestamp_milliseconds
:name "ts"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Ts"
:created_at true
:base_type :BigIntegerField}
{:description nil
:table_id true
:special_type :category
:name "weight"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Weight"
:created_at true
:base_type :DecimalField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Transactions"
:created_at true}])
(ns metabase.sync-database.introspect-test
(:require [expectations :refer :all]
[metabase.db :as db]
[metabase.mock.moviedb :as moviedb]
(metabase.models [database :refer [Database]]
[hydrate :as hydrate]
[raw-column :refer [RawColumn]]
[raw-table :refer [RawTable]])
[metabase.sync-database.introspect :as introspect]
[metabase.test.mock.moviedb :as moviedb]
[metabase.test.util :as tu]))
(tu/resolve-private-fns metabase.sync-database.introspect
......
(ns metabase.sync-database.sync-dynamic-test
(:require [expectations :refer :all]
[metabase.db :as db]
[metabase.mock.toucanery :as toucanery]
(metabase.models [database :refer [Database]]
[field :refer [Field]]
[hydrate :as hydrate]
......@@ -9,6 +8,7 @@
[table :refer [Table]])
(metabase.sync-database [introspect :as introspect]
[sync-dynamic :refer :all])
[metabase.test.mock.toucanery :as toucanery]
[metabase.test.util :as tu]))
(tu/resolve-private-fns metabase.sync-database.sync-dynamic
......
(ns metabase.sync-database.sync-test
(:require [expectations :refer :all]
[metabase.db :as db]
(metabase.mock [moviedb :as moviedb]
[schema-per-customer :as schema-per-customer])
(metabase.models [database :refer [Database]]
[field :refer [Field]]
[hydrate :as hydrate]
......@@ -13,6 +11,8 @@
[sync :refer :all])
[metabase.test.data :as data]
[metabase.test.data.interface :as i]
(metabase.test.mock [moviedb :as moviedb]
[schema-per-customer :as schema-per-customer])
[metabase.test.util :as tu]))
(tu/resolve-private-fns metabase.sync-database.sync
......
This diff is collapsed.
This diff is collapsed.
(ns metabase.test.mock.toucanery
"A document style database mocked for testing.
This is a `:dynamic-schema` db with `:nested-fields`.
Most notably meant to serve as a representation of a Mongo database."
(:require [metabase.driver :as driver]))
(def ^:private ^:const toucanery-tables
{"transactions" {:name "transactions"
:schema nil
:fields #{{:name "id"
:pk? true
:base-type :IntegerField}
{:name "ts"
:base-type :BigIntegerField
:special-type :timestamp_milliseconds}
{:name "toucan"
:base-type :DictionaryField
:nested-fields #{{:name "name"
:base-type :TextField}
{:name "details"
:base-type :DictionaryField
:nested-fields #{{:name "age"
:base-type :IntegerField}
{:name "weight"
:special-type :category
:base-type :DecimalField}}}}}
{:name "buyer"
:base-type :DictionaryField
:nested-fields #{{:name "name"
:base-type :TextField}
{:name "cc"
:base-type :TextField}}}}}
"employees" {:name "employees"
:schema nil
:fields #{{:name "id"
:base-type :IntegerField}
{:name "name"
:base-type :TextField}}}})
(defrecord ToucaneryDriver []
clojure.lang.Named
(getName [_] "ToucaneryDriver"))
(extend ToucaneryDriver
driver/IDriver
(merge driver/IDriverDefaultsMixin
{:analyze-table (constantly nil)
:describe-database (fn [_ {:keys [exclude-tables]}]
(let [tables (for [table (vals toucanery-tables)
:when (not (contains? exclude-tables (:name table)))]
(select-keys table [:schema :name]))]
{:tables (set tables)}))
:describe-table (fn [_ _ table]
(get toucanery-tables (:name table)))
:features (constantly #{:dynamic-schema :nested-fields})
:details-fields (constantly [])
:table-rows-seq (constantly [{:keypath "movies.filming.description", :value "If the movie is currently being filmed."}
{:keypath "movies.description", :value "A cinematic adventure."}])}))
(driver/register-driver! :toucanery (ToucaneryDriver.))
(def ^:const toucanery-raw-tables-and-columns
[{:schema nil
:database_id true
:columns []
:name "employees"
:updated_at true
:details {}
:active true
:id true
:created_at true}
{:schema nil
:database_id true
:columns []
:name "transactions"
:updated_at true
:details {}
:active true
:id true
:created_at true}])
(def ^:const toucanery-tables-and-fields
[{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "employees"
:fields [{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type :name
:name "name"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Name"
:created_at true
:base_type :TextField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Employees"
:created_at true}
{:description nil
:entity_type nil
:schema nil
:raw_table_id true
:name "transactions"
:fields [{:description nil
:table_id true
:special_type nil
:name "age"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Age"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type nil
:name "buyer"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Buyer"
:created_at true
:base_type :DictionaryField}
{:description nil
:table_id true
:special_type nil
:name "cc"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Cc"
:created_at true
:base_type :TextField}
{:description nil
:table_id true
:special_type nil
:name "details"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Details"
:created_at true
:base_type :DictionaryField}
{:description nil
:table_id true
:special_type :id
:name "id"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "ID"
:created_at true
:base_type :IntegerField}
{:description nil
:table_id true
:special_type :name
:name "name"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Name"
:created_at true
:base_type :TextField}
{:description nil
:table_id true
:special_type :name
:name "name"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Name"
:created_at true
:base_type :TextField}
{:description nil
:table_id true
:special_type nil
:name "toucan"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Toucan"
:created_at true
:base_type :DictionaryField}
{:description nil
:table_id true
:special_type :timestamp_milliseconds
:name "ts"
:fk_target_field_id false
:updated_at true
:active true
:parent_id false
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Ts"
:created_at true
:base_type :BigIntegerField}
{:description nil
:table_id true
:special_type :category
:name "weight"
:fk_target_field_id false
:updated_at true
:active true
:parent_id true
:id true
:raw_column_id false
:last_analyzed false
:field_type :info
:position 0
:visibility_type :normal
:preview_display true
:display_name "Weight"
:created_at true
:base_type :DecimalField}]
:rows nil
:updated_at true
:entity_name nil
:active true
:id true
:db_id true
:visibility_type nil
:display_name "Transactions"
:created_at true}])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment