dg:Funções de ingestão: mudanças entre as edições
(Criou página com 'SQL Schema <code>ingest</code>. <table> <tr><td> Function / Description / Example </td></tr> <tr> <td> <b><code>any_load(</code></b><i>text, text, text, text, bigint, text, ARRAY, integer, text, boolean</i><b><code>)</code> → </b> <i>text</i> <p class="pgdoc_comment">Load (into ingest.feature_asis) shapefile or any other non-GeoJSON, of a separated table.</p> </td> </tr><tr> <td> <b><code>any_load(</code></b><i>text, text, text, text, text, text, ARRAY, integer, tex...') |
mSem resumo de edição |
||
(5 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
*Texto original: https://github.com/digital-guard/preserv/blob/main/docs/pt/man-ingestFunctions.md | |||
SQL Schema <code>ingest</code>. | SQL Schema <code>ingest</code>. | ||
{| class="wikitable" | |||
!Function / Description / Example | |||
|- | |||
| | |||
<code>'''any_load('''</code>''text, text, text, text, bigint, text, ARRAY, integer, text, boolean''<code>''')'''</code> → ''text''<br>Load (into ingest.feature_asis) shapefile or any other non-GeoJSON, of a separated table. | |||
< | |- | ||
| | |||
<code>'''any_load('''</code>''text, text, text, text, text, text, ARRAY, integer, text, boolean''<code>''')'''</code> → ''text''<br>Wrap to ingest.any_load(1,2,3,4=real) using string format DD_DD. | |||
|- | |||
| | |||
<code>'''any_load_debug('''</code>''''text, text, text, text, text, text, ARRAY, text, boolean''<code>''')'''</code> → ''jsonb'' | |||
|- | |||
| | |||
<code>'''donated_packcomponent_distribution_prefixes('''</code>''integer''<code>''')'''</code> → ''_text'' | |||
|- | |||
| | |||
<code>'''donated_packcomponent_geomtype('''</code>''bigint''<code>''')'''</code> → ''_text''<br>[Geomtype,ftname,class_ftname,shortname_pt] of a layer_file. | |||
|- | |||
| | |||
<code>'''fdw_csv_paths('''</code>''text, text, text''<code>''')'''</code> → ''_text'' | |||
|- | |||
| | |||
<code>'''fdw_generate('''</code>''text, text, text, ARRAY, boolean, text, text, boolean''<code>''')'''</code> → ''text''<br>Generates a structure FOREIGN TABLE for ingestion. | |||
|- | |||
| | |||
<code>'''fdw_generate_direct_csv('''</code>''text, text, text, boolean, boolean''<code>''')'''</code> → ''text''<br>Generates a FOREIGN TABLE for simples and direct CSV ingestion. | |||
|- | |||
| | |||
<code>'''fdw_generate_getclone('''</code>''text, text, text, ARRAY, ARRAY, text''<code>''')'''</code> → ''text''<br>Generates a clone-structure FOREIGN TABLE for ingestion. Wrap for fdw_generate(). | |||
|- | |||
| | |||
<code>'''fdw_generate_getcsv('''</code>''text, text, text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''feature_asis_assign('''</code>''bigint''<code>''')'''</code> → ''jsonb'' | |||
|- | |||
| | |||
<code>'''feature_asis_assign_format('''</code>''bigint, text, text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''feature_asis_assign_signature('''</code>''bigint''<code>''')'''</code> → ''jsonb'' | |||
|- | |||
</ | | | ||
<code>'''feature_asis_assign_volume('''</code>''bigint, boolean''<code>''')'''</code> → ''jsonb'' | |||
|- | |||
| | |||
<code>'''feature_asis_export('''</code>''bigint, text, integer, jsonb, USER-DEFINED''<code>''')'''</code> → ''record'' | |||
|- | |||
| | |||
<code>'''feature_asis_geohashes('''</code>''bigint, integer''<code>''')'''</code> → ''jsonb'' | |||
|- | |||
| | |||
<code>'''feature_asis_similarity('''</code>''bigint, USER-DEFINED, ARRAY''<code>''')'''</code> → ''jsonb'' | |||
|- | |||
| | |||
<code>'''geojson_load('''</code>''text, integer, real, text, text, boolean''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''getmeta_to_file('''</code>''text, integer, bigint, text, integer, text''<code>''')'''</code> → ''int8''<br>Reads file metadata and inserts it into ingest.donated_PackComponent. If proc_step=1 returns valid ID else NULL. | |||
|- | |||
| | |||
<code>'''getmeta_to_file('''</code>''text, integer, bigint''<code>''')'''</code> → ''int8''<br>Reads file metadata and return id if exists in ingest.donated_PackComponent. | |||
< | |- | ||
< | | | ||
< | <code>'''getmeta_to_file('''</code>''text, text, bigint''<code>''')'''</code> → ''int8''<br>Wrap para ingest.getmeta_to_file(text,int,bigint) usando ftName ao invés de ftID. | ||
</ | |||
|- | |||
| | |||
< | <code>'''getmeta_to_file('''</code>''text, text, bigint, text, integer, text''<code>''')'''</code> → ''int8''<br>Wrap para ingest.getmeta_to_file() usando ftName ao invés de ftID. | ||
< | |||
</ | |- | ||
| | |||
<code>'''insert_bytesize('''</code>''jsonb''<code>''')'''</code> → ''jsonb'' | |||
< | |- | ||
| | |||
<code>'''join('''</code>''text, text, text, text, text, text''<code>''')'''</code> → ''text''<br>Join layer and cadlayer. | |||
|- | |||
< | | | ||
< | <code>'''jplanet_inserts_and_drops'''</code>(smallint, boolean''<code>''')'''</code> → ''void'' | ||
< | |||
< | |- | ||
| | |||
<code>'''jsonb_mustache_prepare('''</code>''jsonb, text''<code>''')'''</code> → ''jsonb'' | |||
|- | |||
< | | | ||
< | <code>'''lix_generate_make_conf_with_license('''</code>''text, text''<code>''')'''</code> → ''text'' | ||
</ | |||
|- | |||
| | |||
<code>'''lix_generate_make_conf_with_size('''</code>''text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''lix_generate_makefile('''</code>''text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''lix_generate_readme('''</code>''text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''lix_insert('''</code>''text''<code>''')'''</code> → ''void'' | |||
|- | |||
| | |||
<code>'''load_codec_type('''</code>''text, text, text''<code>''')'''</code> → ''text''<br>Load codec_type.csv. | |||
|- | |||
| | |||
<code>'''load_hcode_parameters('''</code>''text, text, text''<code>''')'''</code> → ''text''<br>Load hcode_parameters.csv. | |||
|- | |||
| | |||
<code>'''osm_load('''</code>''text, text, text, bigint, text, ARRAY, integer, text, boolean''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''osm_load('''</code>''text, text, text, text, text, ARRAY, integer, text, boolean''<code>''')'''</code> → ''text''<br>Wrap to ingest.osm_load(1,2,3,4=real) using string format DD_DD. | |||
|- | |||
| | |||
<code>'''package_layers_summary('''</code>''real, text, text''<code>''')'''</code> → ''xml'' | |||
|- | |||
| | |||
<code>'''publicating_geojsons('''</code>''bigint, text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''publicating_geojsons('''</code>''text, text, text''<code>''')'''</code> → ''text''<br>Wrap to ingest.publicating_geojsons. | |||
|- | |||
| | |||
<code>'''publicating_geojsons_p1('''</code>''bigint, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''publicating_geojsons_p2('''</code>''bigint, text, boolean''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''publicating_geojsons_p3('''</code>''bigint, text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''publicating_geojsons_p4('''</code>''bigint, text, text''<code>''')'''</code> → ''text'' | |||
|- | |||
| | |||
<code>'''qgis_vwadmin_feature_asis('''</code>''text''<code>''')'''</code> → ''text'' | |||
|} | |||
[[Categoria:Digital-guard]] | |||
Edição atual tal como às 16h54min de 3 de maio de 2023
SQL Schema ingest
.
Function / Description / Example |
---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|