KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Solutions KX Developer – how to extract query text from the request sent to kdb+ Re: KX Developer – how to extract query text from the request sent to kdb+

  • leahs

    Member
    March 31, 2022 at 12:00 am

    Hello @yguo,

    Firstly, welcome to the KX Community! Thank you for sharing your question with us.

    One option that you have is in your developer plugin to define:

    .axedi.plugin.preprocess: { x } // takes a string, returns a string

    This is run before executing any line, and the result of this is sent on for execution (could return “” to deny execution, which will return :: ).

    This will catch execution from the scratchpad, files, VI, transformer, etc.

    We hope this helps you achieve your objective!

    Kind regards,

    Leah