2016-02-24 23:58:14 +08:00
|
|
|
---
|
|
|
|
- name: cdb_geocode_admin0_polygon
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: country_name, type: text }
|
|
|
|
|
|
|
|
- name: cdb_geocode_admin1_polygon
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: admin1_name, type: text }
|
|
|
|
|
|
|
|
- name: cdb_geocode_admin1_polygon
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: admin1_name, type: text }
|
|
|
|
- { name: country_name, type: text }
|
|
|
|
|
|
|
|
- name: cdb_geocode_namedplace_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: city_name, type: text}
|
|
|
|
|
|
|
|
- name: cdb_geocode_namedplace_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: city_name, type: text}
|
|
|
|
- { name: country_name, type: text}
|
|
|
|
|
|
|
|
- name: cdb_geocode_namedplace_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: city_name, type: text}
|
|
|
|
- { name: admin1_name, type: text}
|
|
|
|
- { name: country_name, type: text}
|
|
|
|
|
|
|
|
- name: cdb_geocode_postalcode_polygon
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: postal_code, type: text}
|
|
|
|
- { name: country_name, type: text}
|
|
|
|
|
2017-07-06 00:32:38 +08:00
|
|
|
- name: cdb_geocode_postalcode_polygon
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
2017-07-07 19:08:41 +08:00
|
|
|
- { name: postal_code, type: double precision}
|
2017-07-06 00:32:38 +08:00
|
|
|
- { name: country_name, type: text}
|
|
|
|
|
2016-02-24 23:58:14 +08:00
|
|
|
- name: cdb_geocode_postalcode_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: postal_code, type: text}
|
|
|
|
- { name: country_name, type: text}
|
|
|
|
|
2017-07-06 00:32:38 +08:00
|
|
|
- name: cdb_geocode_postalcode_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
2017-07-07 19:08:41 +08:00
|
|
|
- { name: postal_code, type: double precision}
|
2017-07-06 00:32:38 +08:00
|
|
|
- { name: country_name, type: text}
|
|
|
|
|
2016-02-24 23:58:14 +08:00
|
|
|
- name: cdb_geocode_ipaddress_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: ip_address, type: text}
|
|
|
|
|
|
|
|
- name: cdb_geocode_street_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: searchtext, type: text}
|
|
|
|
- { name: city, type: text, default: 'NULL'}
|
|
|
|
- { name: state_province, type: text, default: 'NULL'}
|
|
|
|
- { name: country, type: text, default: 'NULL'}
|
|
|
|
|
2016-07-05 01:15:37 +08:00
|
|
|
- name: cdb_here_geocode_street_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: searchtext, type: text}
|
|
|
|
- { name: city, type: text, default: 'NULL'}
|
|
|
|
- { name: state_province, type: text, default: 'NULL'}
|
|
|
|
- { name: country, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: cdb_google_geocode_street_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: searchtext, type: text}
|
|
|
|
- { name: city, type: text, default: 'NULL'}
|
|
|
|
- { name: state_province, type: text, default: 'NULL'}
|
|
|
|
- { name: country, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: cdb_mapzen_geocode_street_point
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: searchtext, type: text}
|
|
|
|
- { name: city, type: text, default: 'NULL'}
|
|
|
|
- { name: state_province, type: text, default: 'NULL'}
|
|
|
|
- { name: country, type: text, default: 'NULL'}
|
|
|
|
|
2016-02-24 23:58:14 +08:00
|
|
|
- name: cdb_isodistance
|
|
|
|
return_type: SETOF cdb_dataservices_client.isoline
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: source, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: mode, type: text }
|
|
|
|
- { name: range, type: "integer[]" }
|
|
|
|
- { name: options, type: "text[]", default: 'ARRAY[]::text[]' }
|
|
|
|
|
|
|
|
- name: cdb_isochrone
|
|
|
|
return_type: SETOF cdb_dataservices_client.isoline
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: source, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: mode, type: text }
|
|
|
|
- { name: range, type: "integer[]" }
|
|
|
|
- { name: options, type: "text[]", default: 'ARRAY[]::text[]' }
|
|
|
|
|
2016-07-06 18:10:43 +08:00
|
|
|
- name: cdb_mapzen_isochrone
|
|
|
|
return_type: SETOF cdb_dataservices_client.isoline
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: source, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: mode, type: text }
|
|
|
|
- { name: range, type: "integer[]" }
|
|
|
|
- { name: options, type: "text[]", default: 'ARRAY[]::text[]' }
|
|
|
|
|
2016-07-07 02:03:17 +08:00
|
|
|
- name: cdb_mapzen_isodistance
|
2016-07-07 01:40:40 +08:00
|
|
|
return_type: SETOF cdb_dataservices_client.isoline
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: source, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: mode, type: text }
|
|
|
|
- { name: range, type: "integer[]" }
|
|
|
|
- { name: options, type: "text[]", default: 'ARRAY[]::text[]' }
|
|
|
|
|
2016-02-24 23:58:14 +08:00
|
|
|
- name: cdb_route_point_to_point
|
|
|
|
return_type: cdb_dataservices_client.simple_route
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: origin, type: "geometry(Point, 4326)" }
|
|
|
|
- { name: destination, type: "geometry(Point, 4326)" }
|
|
|
|
- { name: mode, type: text }
|
|
|
|
- { name: options, type: "text[]", default: 'ARRAY[]::text[]' }
|
|
|
|
- { name: units, type: "text", default: "'kilometers'"}
|
|
|
|
|
2016-05-23 23:26:43 +08:00
|
|
|
- name: cdb_route_with_waypoints
|
|
|
|
return_type: cdb_dataservices_client.simple_route
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: waypoints, type: "geometry(Point, 4326)[]" }
|
|
|
|
- { name: mode, type: text }
|
|
|
|
- { name: options, type: "text[]", default: 'ARRAY[]::text[]' }
|
|
|
|
- { name: units, type: "text", default: "'kilometers'"}
|
|
|
|
|
2016-04-19 21:16:10 +08:00
|
|
|
- name: obs_get_demographic_snapshot
|
|
|
|
return_type: json
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
2016-05-16 16:24:22 +08:00
|
|
|
- { name: time_span, type: "text", default: "'2009 - 2013'::text" }
|
2016-07-26 17:17:56 +08:00
|
|
|
- { name: geometry_level, type: text, default: 'NULL' }
|
2016-04-19 21:16:10 +08:00
|
|
|
|
|
|
|
- name: obs_get_segment_snapshot
|
|
|
|
return_type: json
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
2016-07-26 17:17:56 +08:00
|
|
|
- { name: geometry_level, type: text, default: 'NULL' }
|
2016-05-11 00:05:53 +08:00
|
|
|
|
|
|
|
- name: obs_getdemographicsnapshot
|
2016-05-13 00:17:26 +08:00
|
|
|
return_type: SETOF JSON
|
|
|
|
multi_row: true
|
2016-05-11 00:05:53 +08:00
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: time_span, type: "text", default: 'NULL' }
|
|
|
|
- { name: geometry_level, type: text, default: 'NULL' }
|
|
|
|
|
|
|
|
- name: obs_getsegmentsnapshot
|
2016-05-13 00:17:26 +08:00
|
|
|
return_type: SETOF JSON
|
|
|
|
multi_row: true
|
2016-05-11 00:05:53 +08:00
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: geometry_level, type: text, default: 'NULL' }
|
|
|
|
|
|
|
|
- name: obs_getboundary
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getboundaryid
|
|
|
|
return_type: text
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getboundarybyid
|
|
|
|
return_type: Geometry
|
|
|
|
params:
|
|
|
|
- { name: geometry_id, type: text }
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getboundariesbygeometry
|
|
|
|
return_type: TABLE(the_geom geometry, geom_refs text)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: the_geom, type: geometry }
|
|
|
|
- { name: geom_refs, type: text }
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
2016-07-26 17:17:56 +08:00
|
|
|
- { name: overlap_type, type: text, default: 'NULL'}
|
2016-05-11 00:05:53 +08:00
|
|
|
|
|
|
|
- name: obs_getboundariesbypointandradius
|
|
|
|
return_type: TABLE(the_geom geometry, geom_refs text)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: the_geom, type: geometry }
|
|
|
|
- { name: geom_refs, type: text }
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: radius, type: numeric }
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
2016-07-26 17:17:56 +08:00
|
|
|
- { name: overlap_type, type: text, default: 'NULL'}
|
2016-05-11 00:05:53 +08:00
|
|
|
|
|
|
|
- name: obs_getpointsbygeometry
|
|
|
|
return_type: TABLE(the_geom geometry, geom_refs text)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: the_geom, type: geometry }
|
|
|
|
- { name: geom_refs, type: text }
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
2016-07-26 17:17:56 +08:00
|
|
|
- { name: overlap_type, type: text, default: 'NULL'}
|
2016-05-11 00:05:53 +08:00
|
|
|
|
|
|
|
- name: obs_getpointsbypointandradius
|
|
|
|
return_type: TABLE(the_geom geometry, geom_refs text)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: the_geom, type: geometry }
|
|
|
|
- { name: geom_refs, type: text }
|
|
|
|
params:
|
|
|
|
- { name: geom, type: "geometry(Geometry, 4326)" }
|
|
|
|
- { name: radius, type: numeric }
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
2016-07-26 17:17:56 +08:00
|
|
|
- { name: overlap_type, type: text, default: 'NULL'}
|
2016-05-11 00:05:53 +08:00
|
|
|
|
|
|
|
- name: obs_getmeasure
|
|
|
|
return_type: numeric
|
|
|
|
params:
|
|
|
|
- { name: geom, type: Geometry }
|
|
|
|
- { name: measure_id, type: text }
|
2016-07-26 03:41:48 +08:00
|
|
|
- { name: normalize, type: text, default: 'NULL'}
|
2016-05-11 00:05:53 +08:00
|
|
|
- { name: boundary_id, type: text, default: 'NULL' }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
2016-05-31 00:12:21 +08:00
|
|
|
- name: obs_getmeasurebyid
|
|
|
|
return_type: numeric
|
|
|
|
params:
|
|
|
|
- { name: geom_ref, type: text }
|
|
|
|
- { name: measure_id, type: text }
|
|
|
|
- { name: boundary_id, type: text}
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
2017-01-13 05:22:45 +08:00
|
|
|
- name: obs_getdata
|
|
|
|
return_type: TABLE(id int, data json)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: id, type: integer }
|
|
|
|
- { name: data, type: json }
|
|
|
|
params:
|
|
|
|
- { name: geomvals, type: "geomval[]" }
|
|
|
|
- { name: params, type: json }
|
|
|
|
- { name: merge, type: boolean, default: true }
|
|
|
|
|
|
|
|
- name: obs_getdata
|
|
|
|
return_type: TABLE(id text, data json)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: id, type: text }
|
|
|
|
- { name: data, type: json }
|
|
|
|
params:
|
|
|
|
- { name: geomrefs, type: "text[]" }
|
|
|
|
- { name: params, type: json }
|
|
|
|
|
|
|
|
- name: obs_getmeta
|
|
|
|
return_type: json
|
|
|
|
params:
|
|
|
|
- { name: geom_ref, type: "Geometry(Geometry, 4326)" }
|
|
|
|
- { name: params, type: json }
|
|
|
|
- { name: max_timespan_rank, type: integer, default: 'NULL' }
|
|
|
|
- { name: max_score_rank, type: integer, default: 'NULL' }
|
|
|
|
- { name: target_geoms, type: integer, default: 'NULL' }
|
|
|
|
|
2017-08-09 00:55:26 +08:00
|
|
|
- name: obs_metadatavalidation
|
|
|
|
return_type: TABLE(valid boolean, errors text[])
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: geom_extent, type: "Geometry(Geometry, 4326)" }
|
|
|
|
- { name: geom_type, type: text }
|
|
|
|
- { name: params, type: json }
|
|
|
|
- { name: target_geoms, type: integer, default: 'NULL' }
|
|
|
|
|
2016-05-11 00:05:53 +08:00
|
|
|
- name: obs_getcategory
|
|
|
|
return_type: text
|
|
|
|
params:
|
|
|
|
- { name: geom, type: Geometry }
|
|
|
|
- { name: category_id, type: text }
|
|
|
|
- { name: boundary_id, type: text, default: 'NULL' }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getuscensusmeasure
|
|
|
|
return_type: numeric
|
|
|
|
params:
|
|
|
|
- { name: geom, type: Geometry }
|
|
|
|
- { name: name, type: text }
|
2016-07-26 03:41:48 +08:00
|
|
|
- { name: normalize, type: text, default: 'NULL'}
|
2016-05-11 00:05:53 +08:00
|
|
|
- { name: boundary_id, type: text, default: 'NULL' }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getuscensuscategory
|
|
|
|
return_type: text
|
|
|
|
params:
|
|
|
|
- { name: geom, type: Geometry }
|
|
|
|
- { name: name, type: text }
|
|
|
|
- { name: boundary_id, type: text, default: 'NULL' }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getpopulation
|
|
|
|
return_type: numeric
|
|
|
|
params:
|
|
|
|
- { name: geom, type: Geometry }
|
2016-07-26 03:41:48 +08:00
|
|
|
- { name: normalize, type: text, default: 'NULL'}
|
2016-05-11 00:05:53 +08:00
|
|
|
- { name: boundary_id, type: text, default: 'NULL' }
|
|
|
|
- { name: time_span, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_search
|
|
|
|
return_type: TABLE(id text, description text, name text, aggregate text, source text)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: id, type: text }
|
|
|
|
- { name: description, type: text }
|
|
|
|
- { name: name, type: text }
|
|
|
|
- { name: aggregate, type: text }
|
|
|
|
- { name: source, type: text }
|
|
|
|
params:
|
|
|
|
- { name: search_term, type: text }
|
|
|
|
- { name: relevant_boundary, type: text, default: 'NULL' }
|
|
|
|
|
|
|
|
- name: obs_getavailableboundaries
|
|
|
|
return_type: TABLE(boundary_id text, description text, time_span text, tablename text)
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
table_fields:
|
|
|
|
- { name: boundary_id, type: text }
|
|
|
|
- { name: description, type: text }
|
|
|
|
- { name: time_span, type: text }
|
|
|
|
- { name: tablename, type: text }
|
|
|
|
params:
|
|
|
|
- { name: geom, type: Geometry }
|
|
|
|
- { name: timespan, type: text, default: 'NULL'}
|
2016-07-12 00:25:39 +08:00
|
|
|
|
|
|
|
- name: obs_dumpversion
|
|
|
|
return_type: text
|
|
|
|
params:
|
|
|
|
- {}
|
2016-11-08 00:56:09 +08:00
|
|
|
|
|
|
|
- name: obs_getavailablenumerators
|
|
|
|
return_type: SETOF cdb_dataservices_client.obs_meta_numerator
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: bounds, type: "geometry(Geometry, 4326)", default: 'NULL' }
|
|
|
|
- { name: filter_tags, type: "text[]", default: 'NULL' }
|
|
|
|
- { name: denom_id, type: text, default: 'NULL' }
|
|
|
|
- { name: geom_id, type: text, default: 'NULL' }
|
|
|
|
- { name: timespan, type: text, default: 'NULL'}
|
|
|
|
|
2017-06-29 22:03:19 +08:00
|
|
|
- name: _obs_getnumerators
|
|
|
|
return_type: SETOF cdb_dataservices_client.obs_meta_numerator
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: bounds, type: "geometry(Geometry, 4326)", default: 'NULL' }
|
|
|
|
- { name: section_tags, type: "text[]", default: 'ARRAY[]::TEXT[]' }
|
|
|
|
- { name: subsection_tags, type: "text[]", default: 'ARRAY[]::TEXT[]' }
|
|
|
|
- { name: other_tags, type: "text[]", default: 'ARRAY[]::TEXT[]' }
|
|
|
|
- { name: ids, type: "text[]", default: 'ARRAY[]::TEXT[]' }
|
|
|
|
- { name: name, type: text, default: 'NULL' }
|
|
|
|
- { name: denom_id, type: text, default: "''" }
|
|
|
|
- { name: geom_id, type: text, default: "''" }
|
|
|
|
- { name: timespan, type: text, default: "''"}
|
|
|
|
|
2016-11-08 00:56:09 +08:00
|
|
|
- name: obs_getavailabledenominators
|
|
|
|
return_type: SETOF cdb_dataservices_client.obs_meta_denominator
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: bounds, type: "geometry(Geometry, 4326)", default: 'NULL' }
|
|
|
|
- { name: filter_tags, type: "text[]", default: 'NULL' }
|
|
|
|
- { name: numer_id, type: text, default: 'NULL' }
|
|
|
|
- { name: geom_id, type: text, default: 'NULL' }
|
|
|
|
- { name: timespan, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getavailablegeometries
|
|
|
|
return_type: SETOF cdb_dataservices_client.obs_meta_geometry
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: bounds, type: "geometry(Geometry, 4326)", default: 'NULL' }
|
|
|
|
- { name: filter_tags, type: "text[]", default: 'NULL' }
|
|
|
|
- { name: numer_id, type: text, default: 'NULL' }
|
|
|
|
- { name: denom_id, type: text, default: 'NULL' }
|
|
|
|
- { name: timespan, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_getavailabletimespans
|
|
|
|
return_type: SETOF cdb_dataservices_client.obs_meta_timespan
|
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: bounds, type: "geometry(Geometry, 4326)", default: 'NULL' }
|
|
|
|
- { name: filter_tags, type: "text[]", default: 'NULL' }
|
|
|
|
- { name: numer_id, type: text, default: 'NULL' }
|
|
|
|
- { name: denom_id, type: text, default: 'NULL' }
|
|
|
|
- { name: geom_id, type: text, default: 'NULL'}
|
|
|
|
|
|
|
|
- name: obs_legacybuildermetadata
|
2016-11-11 01:07:06 +08:00
|
|
|
return_type: TABLE(name text, subsection json)
|
2016-11-08 00:56:09 +08:00
|
|
|
multi_row: true
|
|
|
|
multi_field: true
|
|
|
|
params:
|
|
|
|
- { name: aggregate_type, type: text, default: 'NULL' }
|
2016-11-24 20:05:31 +08:00
|
|
|
|
2016-11-25 00:46:07 +08:00
|
|
|
- name: cdb_service_quota_info
|
2016-11-25 01:38:31 +08:00
|
|
|
return_type: SETOF service_quota_info
|
2016-11-24 20:05:31 +08:00
|
|
|
multi_row: true
|
Fix issue with multi-field values #302
The difference between
```
=> select * from cdb_service_quota_info();
service | monthly_quota | used_quota | soft_limit | provider
----------------+---------------+------------+------------+------------------
isolines | 1000 | 0 | f | heremaps
hires_geocoder | 5 | 2 | f | mapzen
routing | 1500000 | 0 | f | mapzen
observatory | 1000 | 0 | f | data observatory
(4 rows)
```
and
```
=> select cdb_service_quota_info();
cdb_service_quota_info
-------------------------------------------
(isolines,1000,0,f,heremaps)
(hires_geocoder,5,2,f,mapzen)
(routing,1500000,0,f,mapzen)
(observatory,1000,0,f,"data observatory")
(4 rows)
```
is important to pl/proxy. In the later case, rows only have one field
(a tuple) and it complains with "Got too few fields from remote end".
2016-11-25 01:24:13 +08:00
|
|
|
multi_field: true
|
2016-11-24 20:05:31 +08:00
|
|
|
params:
|
|
|
|
- {}
|
|
|
|
|
|
|
|
- name: cdb_enough_quota
|
|
|
|
return_type: BOOLEAN
|
|
|
|
params:
|
2016-11-25 01:38:31 +08:00
|
|
|
- { name: service, type: TEXT }
|
2017-01-13 05:22:45 +08:00
|
|
|
- { name: input_size, type: NUMERIC }
|
2017-03-22 23:31:45 +08:00
|
|
|
|
|
|
|
- name: cdb_service_get_rate_limit
|
|
|
|
return_type: json
|
|
|
|
params:
|
|
|
|
- { name: service, type: "text" }
|
|
|
|
|
|
|
|
- name: cdb_service_set_user_rate_limit
|
2017-03-28 16:37:21 +08:00
|
|
|
superuser: true
|
2017-03-22 23:31:45 +08:00
|
|
|
return_type: void
|
|
|
|
params:
|
|
|
|
- { name: service, type: "text" }
|
|
|
|
- { name: rate_limit, type: json }
|
|
|
|
|
|
|
|
- name: cdb_service_set_org_rate_limit
|
2017-03-28 16:37:21 +08:00
|
|
|
superuser: true
|
2017-03-22 23:31:45 +08:00
|
|
|
return_type: void
|
|
|
|
params:
|
|
|
|
- { name: service, type: "text" }
|
|
|
|
- { name: rate_limit, type: json }
|
|
|
|
|
|
|
|
- name: cdb_service_set_server_rate_limit
|
2017-03-28 16:37:21 +08:00
|
|
|
superuser: true
|
2017-03-22 23:31:45 +08:00
|
|
|
return_type: void
|
|
|
|
params:
|
|
|
|
- { name: service, type: "text" }
|
|
|
|
- { name: rate_limit, type: json }
|