Skip to Content.
Sympa Menu

grouper-users - [grouper-users] GSH: how to get a full SQL query results back?

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] GSH: how to get a full SQL query results back?


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: "" <>
  • Subject: [grouper-users] GSH: how to get a full SQL query results back?
  • Date: Fri, 25 Jan 2019 16:04:35 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.163.15) smtp.mailfrom=osu.edu; internet2.edu; dkim=pass (signature was verified) header.d=osu.edu;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Authentication-results-original: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:2SkVHxQLyMDLKbwcnTQHKlyiE9psv+yvbD5Q0YIujvd0So/mwa6ybBGN2/xhgRfzUJnB7Loc0qyK6/CmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbB/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHJhMJtkKJVrhGvpx1jzIDbb46YL+Z+frrBcd8GWWZNQthdWipcCY28dYsPCO8BMP5Wo4Tgo1sBtwexBQq0COjy1DJHnGX20rM60u88Fg/KxgIsFM8JvXvPqNX6LrsdUeOvwKXV0znOYehb2TDm6IjVaBwuv+yDXa9pfMfX1EIhFBvFg02fpID5JT+Zy/gBvmqB4+diVu+jkXMrpg91rzS32MshhZPFipwJxl3H7yl13pg5KNOiREJmY9OpE4Ncty+EOIZ1Xs8vRmRltzs5x7AHo5G2eTUGx4g8yBLCbvGKcouF7xLtVOuULzd1inJodby5ih2v60av0Pf8WdOx0FtSripKjN3MtncV2hLL9sWJTedx80m41TuS1Q/f9PhIIUcvmqXFMZIhxaMwloYIvkTEAy/2nlj5gLWOdkU+/eio9/roban6pp+dMI90jBvyMqMzmsyjBeQ4NQ8OX2uB9eug073j+FX1QLRMjvIojqnUqJ/XKdgBqqKkHwNY0Jwv5hS8Aju8zdgVk30KIEpAeB2djojpP1/OIOr/Dfe6m1mjizNryOraMb3iGJnBM2bPnbn6cLZ68E5c1RA/ws5C6JJJEr0BOu78WlfttNzECR80KwO0w/zgCNVgzoMRR3iPDraEMKPJr1CI/PkvLvKIZI8Uozb9N+Ml6+D0gX84n18dYbem3YERaH+mAvRqPV+VbmTxjdccQi82uV90Q/btlUWPS3tOfHuoRIo94C02EoSrEd2FS4ywyvTV0z28A4VbfCVbEV2WCl/pcZmJQfEBdHjUL8N8xG8qT7+kHsUL0Rilt0uy4LN9I/uc32tS/cbp0NF+5KuKz0oa8idpScmRzjfeHClPgmoUSmpuj+hEqktnxwLbi/IqiuFEFdFV+/JCWxs7MpiZ1eFhFtTuQVuQJ4WSUFjzWty9GnlxVd83z9IUK2dFU9S5xkmZj2zzX+FTzuLQQsVps8e+l2P0O947zn/H0Kc7iFxzRdBSc2Cqm/039g7PCpTPnlnD0aumaPdU0C3M8TKbxHGV9AFDUQF2WLnYR31XeULN5cr0/ELMTrKiSNFFegtMwMKPMO1GP9rykBNLSOqwOdLCbni3lnvqQxuE2+DEYI/jYW5IxCzGEwANmBwS+nDTMw84C2+hrmvSASYoG0joZhbr6vQ4pX+mHUI=

All,

I have started to think about how I want to create some "standard reports"
from grouper.
Stems/groups created yesterday, this week, this month, etc...
Counts of:
Memberships in *special* groups in a Stem.
Events processed by Change Log Consumers (and watching for them
"getting stuck") or other daemon jobs.
Change Log Consumers that have not processed entries in so long that
they have "missed some" ( end of life conditions for CLC's )
Etc...


I am leaning toward using GSH scripts.
It would let me have to access the Grouper API.
But there are also things in the RDBMS that I want to poke at
too.

It would be useful if I could do "generic SQL" statements and parse the
results in a GSH script.

I have figured out how to get a single String result:
aStringReturned = HibernateSession.bySqlStatic().select(String.class,
"select count(*) from grouper_change_log_consumer");



But want I want to be able to do is sql like:
"select * from grouper_change_log_consumer"

And then walk the results looking at each row and the column values.


This just has to be possible. I just am not seeing a good example of how to
start.
Is there something in the existing code that I could model off of?
Has anyone done this kind of thing before?

--
Carey Matthew





  • [grouper-users] GSH: how to get a full SQL query results back?, Black, Carey M., 01/25/2019

Archive powered by MHonArc 2.6.19.

Top of Page