Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Web: Provide a database status page #62

Open
sneumann opened this issue Nov 13, 2020 · 1 comment
Open

Web: Provide a database status page #62

sneumann opened this issue Nov 13, 2020 · 1 comment

Comments

@sneumann
Copy link
Member

Hi, it would be great to have a status page showing the database content:

metchem=# select library.library_name, count(*), library.last_updated,library.library_link from library, substance where library.library_id=substance.library_id group by library.library_name, library.last_updated, library.library_link;
 library_name | count  | last_updated |         library_link         
--------------+--------+--------------+------------------------------
 chebi        | 105236 | 2020-11-11   | https://www.ebi.ac.uk/chebi
 lipidmaps    |  42259 | 2020-11-10   | http://www.lipidmaps.org
 swisslipids  | 592076 | 2020-11-10   | https://www.swisslipids.org/
...

Also possibly include status of local datasets:

for F in *.txt ; do echo -e "$F\t$(wc -l $F)\t$(date -r $F -R )" ; done
@sneumann
Copy link
Member Author

Example for a simple popup:
https://github.com/ipb-halle/MetFragRelaunched/blob/master/MetFragWeb/src/main/webapp/includes/dialogs/expiredSessionDialog.xhtml

One place with SQL queries is

public ArrayList<String> getCandidateIdentifiers(String molecularFormula) {

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant