F
F
f3nix2019-02-06 12:47:22
Flask
f3nix, 2019-02-06 12:47:22

How to display a large table via flask from postgresql?

There is a large database. There are 20 tables in the database. Each table has about 50 fields (columns). You need to make sure that there is a list of 20 links on the left (in accordance with 20 tables), when you click on the first link, the first table is displayed, on the second - the second, etc. New tables are periodically added to the database. Create a separate class for each of the 20 tables and describe 50 fields in each class, and then add new classes as tables are added? Or is there an easier way to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2019-02-06
@melkij

If the tables are the same - you should have one table with a field something in the sense of the record type. Plus there is a handbook sign on the side.
If the tables are different, different classes will be more convenient for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question