(trans_id, sgid, sid, did)
| 661 | endpoint='prequisite') |
| 662 | @pga_login_required |
| 663 | def prequisite(trans_id, sgid, sid, did): |
| 664 | conn = _get_connection(sid, did, trans_id) |
| 665 | helper = ERDHelper(trans_id, sid, did) |
| 666 | status, col_types = helper.get_types() |
| 667 | |
| 668 | if not status: |
| 669 | return internal_server_error(errormsg=col_types) |
| 670 | |
| 671 | status, schemas = get_schemas(conn, show_system_objects=False) |
| 672 | |
| 673 | if not status: |
| 674 | return internal_server_error(errormsg=schemas) |
| 675 | |
| 676 | status, types = helper.get_geometry_types() |
| 677 | |
| 678 | if not status: |
| 679 | return internal_server_error(errormsg=types) |
| 680 | |
| 681 | return make_json_response( |
| 682 | data={ |
| 683 | 'col_types': col_types, |
| 684 | 'schemas': schemas['rows'], |
| 685 | 'geometry_types': types |
| 686 | }, |
| 687 | status=200 |
| 688 | ) |
| 689 | |
| 690 | |
| 691 | def translate_foreign_keys(tab_fks, tab_data, all_nodes): |
nothing calls this directly
no test coverage detected