Project

General

Profile

« Previous | Next » 

Revision 12933

schemas/vegbien.sql: public_validations: added _specimens_01_count_of_total_records_specimens_in_source_db

View differences:

trunk/schemas/vegbien.my.sql
364 364

  
365 365

  
366 366
--
367
-- Name: keys_~type._specimens_01_count_of_total_records_specimens_in_so; Type: TYPE; Schema: public_validations; Owner: -
368
--
369

  
370

  
371

  
372

  
373
--
374
-- Name: TYPE `keys_~type._specimens_01_count_of_total_records_specimens_in_so`; Type: COMMENT; Schema: public_validations; Owner: -
375
--
376

  
377

  
378

  
379

  
380
--
367 381
-- Name: keys_~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: -
368 382
--
369 383

  
......
588 602

  
589 603

  
590 604
--
605
-- Name: values__~type._specimens_01_count_of_total_records_specimens_in; Type: TYPE; Schema: public_validations; Owner: -
606
--
607

  
608

  
609

  
610

  
611
--
612
-- Name: TYPE `values__~type._specimens_01_count_of_total_records_specimens_in`; Type: COMMENT; Schema: public_validations; Owner: -
613
--
614

  
615

  
616

  
617

  
618
--
591 619
-- Name: values__~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: -
592 620
--
593 621

  
......
1672 1700

  
1673 1701

  
1674 1702
--
1703
-- Name: ~type._specimens_01_count_of_total_records_specimens_in_source_; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
1704
--
1705

  
1706
CREATE TABLE `~type._specimens_01_count_of_total_records_specimens_in_source_` (
1707
    `totalSpecimenRecords` varchar(255)
1708
);
1709

  
1710

  
1711
--
1712
-- Name: keys(`~type._specimens_01_count_of_total_records_specimens_in_source_`); Type: FUNCTION; Schema: public_validations; Owner: -
1713
--
1714

  
1715

  
1716

  
1717

  
1718
--
1675 1719
-- Name: ~type._traits_01_count_records; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
1676 1720
--
1677 1721

  
......
2136 2180

  
2137 2181

  
2138 2182
--
2183
-- Name: values_(`~type._specimens_01_count_of_total_records_specimens_in_source_`); Type: FUNCTION; Schema: public_validations; Owner: -
2184
--
2185

  
2186

  
2187

  
2188

  
2189
--
2139 2190
-- Name: values_(`~type._traits_01_count_records`); Type: FUNCTION; Schema: public_validations; Owner: -
2140 2191
--
2141 2192

  
......
5021 5072

  
5022 5073

  
5023 5074
--
5075
-- Name: _specimens_01_count_of_total_records_specimens_in_source_db; Type: VIEW; Schema: public_validations; Owner: -
5076
--
5077

  
5078

  
5079

  
5080

  
5081
--
5024 5082
-- Name: _traits_01_count_records; Type: VIEW; Schema: public_validations; Owner: -
5025 5083
--
5026 5084

  
......
8022 8080

  
8023 8081

  
8024 8082
--
8083
-- Data for Name: ~type._specimens_01_count_of_total_records_specimens_in_source_; Type: TABLE DATA; Schema: public_validations; Owner: -
8084
--
8085

  
8086

  
8087

  
8088
--
8025 8089
-- Data for Name: ~type._traits_01_count_records; Type: TABLE DATA; Schema: public_validations; Owner: -
8026 8090
--
8027 8091

  
trunk/schemas/vegbien.sql
688 688

  
689 689

  
690 690
--
691
-- Name: keys_~type._specimens_01_count_of_total_records_specimens_in_so; Type: TYPE; Schema: public_validations; Owner: -
692
--
693

  
694
CREATE TYPE "keys_~type._specimens_01_count_of_total_records_specimens_in_so" AS (
695
);
696

  
697

  
698
--
699
-- Name: TYPE "keys_~type._specimens_01_count_of_total_records_specimens_in_so"; Type: COMMENT; Schema: public_validations; Owner: -
700
--
701

  
702
COMMENT ON TYPE "keys_~type._specimens_01_count_of_total_records_specimens_in_so" IS '
703
autogenerated
704
';
705

  
706

  
707
--
691 708
-- Name: keys_~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: -
692 709
--
693 710

  
......
988 1005

  
989 1006

  
990 1007
--
1008
-- Name: values__~type._specimens_01_count_of_total_records_specimens_in; Type: TYPE; Schema: public_validations; Owner: -
1009
--
1010

  
1011
CREATE TYPE "values__~type._specimens_01_count_of_total_records_specimens_in" AS (
1012
	"totalSpecimenRecords" bigint
1013
);
1014

  
1015

  
1016
--
1017
-- Name: TYPE "values__~type._specimens_01_count_of_total_records_specimens_in"; Type: COMMENT; Schema: public_validations; Owner: -
1018
--
1019

  
1020
COMMENT ON TYPE "values__~type._specimens_01_count_of_total_records_specimens_in" IS '
1021
autogenerated
1022
';
1023

  
1024

  
1025
--
991 1026
-- Name: values__~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: -
992 1027
--
993 1028

  
......
3053 3088

  
3054 3089

  
3055 3090
--
3091
-- Name: ~type._specimens_01_count_of_total_records_specimens_in_source_; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
3092
--
3093

  
3094
CREATE TABLE "~type._specimens_01_count_of_total_records_specimens_in_source_" (
3095
    "totalSpecimenRecords" bigint
3096
);
3097

  
3098

  
3099
--
3100
-- Name: keys("~type._specimens_01_count_of_total_records_specimens_in_source_"); Type: FUNCTION; Schema: public_validations; Owner: -
3101
--
3102

  
3103
CREATE FUNCTION keys(value "~type._specimens_01_count_of_total_records_specimens_in_source_") RETURNS "keys_~type._specimens_01_count_of_total_records_specimens_in_so"
3104
    LANGUAGE sql IMMUTABLE
3105
    AS $$
3106
SELECT ROW()::public_validations."keys_~type._specimens_01_count_of_total_records_specimens_in_so"
3107
$$;
3108

  
3109

  
3110
--
3056 3111
-- Name: ~type._traits_01_count_records; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
3057 3112
--
3058 3113

  
......
3937 3992

  
3938 3993

  
3939 3994
--
3995
-- Name: values_("~type._specimens_01_count_of_total_records_specimens_in_source_"); Type: FUNCTION; Schema: public_validations; Owner: -
3996
--
3997

  
3998
CREATE FUNCTION values_(value "~type._specimens_01_count_of_total_records_specimens_in_source_") RETURNS "values__~type._specimens_01_count_of_total_records_specimens_in"
3999
    LANGUAGE sql IMMUTABLE
4000
    AS $_$
4001
SELECT ROW($1."totalSpecimenRecords")::public_validations."values__~type._specimens_01_count_of_total_records_specimens_in"
4002
$_$;
4003

  
4004

  
4005
--
3940 4006
-- Name: values_("~type._traits_01_count_records"); Type: FUNCTION; Schema: public_validations; Owner: -
3941 4007
--
3942 4008

  
......
8093 8159

  
8094 8160

  
8095 8161
--
8162
-- Name: _specimens_01_count_of_total_records_specimens_in_source_db; Type: VIEW; Schema: public_validations; Owner: -
8163
--
8164

  
8165
CREATE VIEW _specimens_01_count_of_total_records_specimens_in_source_db AS
8166
 SELECT count(*) AS "totalSpecimenRecords"
8167
   FROM public.location
8168
  WHERE (location.source_id = ( SELECT public.source_by_shortname(("current_schema"())::text) AS source_by_shortname));
8169

  
8170

  
8171
--
8096 8172
-- Name: _traits_01_count_records; Type: VIEW; Schema: public_validations; Owner: -
8097 8173
--
8098 8174

  
......
11141 11217

  
11142 11218

  
11143 11219
--
11220
-- Data for Name: ~type._specimens_01_count_of_total_records_specimens_in_source_; Type: TABLE DATA; Schema: public_validations; Owner: -
11221
--
11222

  
11223

  
11224

  
11225
--
11144 11226
-- Data for Name: ~type._traits_01_count_records; Type: TABLE DATA; Schema: public_validations; Owner: -
11145 11227
--
11146 11228

  

Also available in: Unified diff