fix obs_search signature & tests

This commit is contained in:
John Krauss
2016-05-03 14:27:36 -04:00
parent 685cb21779
commit 47b2227453
2 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ BEGIN
SELECT id, description,
name,
aggregate,
NULL source -- TODO use tags
NULL::TEXT source -- TODO use tags
FROM observatory.OBS_column
where name ilike '%%' || %L || '%%'
or description ilike '%%' || %L || '%%'

View File

@@ -36,8 +36,8 @@ t
(1 row)
obs_search
("es.ine.total_pop","The total number of all people living in a geographic area.","Total Population",sum,es.ine)
("us.census.acs.B01001001","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Total Population",sum,us.census.acs)
("us.census.acs.B01001001_quantile","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Quantile:Total Population",quantile,us.census.acs)
("us.census.acs.B01001001","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Total Population",sum,)
("us.census.acs.B01001001_quantile","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Quantile:Total Population",quantile,)
(3 rows)
boundary_id|description|time_span|tablename
us.census.tiger.block_group|Block groups (BGs) are statistical divisions of census tracts, are generally defined to contain between 600 and 3,000 people, and are used to present data and control block numbering. A block group consists of clusters of blocks within the same census tract that have the same first digit of their four-digit census block number. For example, blocks 3001, 3002, 3003, ..., 3999 in census tract 1210.02 belong to BG 3 in that census tract. Most BGs were delineated by local participants in the Census Bureau\u2019s Participant Statistical Areas Program. The Census Bureau delineated BGs only where a local or tribal government declined to participate, and a regional organization or State Data Center was not available to participate.