Mysql "LIKE" query using vanilla DIRAC API

12 views
Skip to first unread message

dhiraj...@gmail.com

unread,
Jan 3, 2021, 10:28:42 PM1/3/21
to diracgrid-develop
Hi,

Happy New Year !!

I am using DIRAC version: v6r21

And building a server-side extension on top of vanilla DIRAC, for which I am using "getFields" API from MySQL.py (DIRAC/Core/Utilities/MySQL.py). 

I was trying to perform "LIKE" query using this API but unfortunately, "getFields" API doesn't support it. 

Would it be a good idea to extend the core functionality of "getFields" API  (DIRAC/Core/Utilities/MySQL.py) and perform method overriding of  "buildCondition" method under (DIRAC/Core/Utilities/MySQL.py) to include the "LIKE" query feature?

Could you please advise is the best way to perform the "LIKE" query? Is it a good idea to perform method overriding on the core functionality of vanilla DIRAC?  


Thanks,
Dhiraj
Belle II Computing Group

Federico Stagni

unread,
Jan 4, 2021, 2:56:40 AM1/4/21
to diracgri...@googlegroups.com
Hello Dhiraj,
you can submit a Pull Request to DIRAC targeting v6r22 (v6r21 is way too old, and Belle2 also moved to v6r22): https://github.com/DIRACGrid/DIRAC/pulls

Cheers,
Federico

--
You received this message because you are subscribed to the Google Groups "diracgrid-develop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diracgrid-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diracgrid-develop/3629d5d4-a0cc-40cc-a347-5840583878adn%40googlegroups.com.

dhiraj...@gmail.com

unread,
Jan 4, 2021, 10:15:11 PM1/4/21
to diracgrid-develop
Dear Federico,

Thanks for your reply. 

Okay, I will submit targeting  v6r22.

Reply all
Reply to author
Forward
0 new messages