Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Portic
porticapi
Commits
6806a368
Commit
6806a368
authored
Jul 31, 2020
by
Christine Plumejeaud
Browse files
'api' for reading fieldnames
parent
ad0383ce
Changes
1
Show whitespace changes
Inline
Side-by-side
porticapi/apidata.py
View file @
6806a368
...
...
@@ -138,7 +138,7 @@ def readFieldnames(api, schema='navigoviz') :
schema
=
'ports'
#API;name;shortname;type;description
query
=
"""SELECT %s as API,
query
=
"""SELECT
'
%s
'
as API,
c.column_name as name,
case when c.table_name= 'built_travels' then 't' else (case when c.table_name= 'port_points' then 'pp' else 'p' end) end||navigo.pystrip(to_char(c.ordinal_position::int, '009')) as shortname,
c.data_type as type, pgd.description as description
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment