Way to Dynamically import a module?
I was wondering if in BaseX there is a way at run time to import a .xqm module, outside of the traditional "import module" statement. Thanks in advance for any guidance you can provide. Buddy
Hi Buddy,
I was wondering if in BaseX there is a way at run time to import a .xqm module, outside of the traditional “import module” statement.
Check out inspect:functions [1]. Hope this helps, Christian [1] https://docs.basex.org/wiki/Inspection_Module#inspect:functions
Thank you! Follow up (strange) question. Is there the ability to "unload" a module dynamically? Buddy -----Original Message----- From: Christian Grün <christian.gruen@gmail.com> Sent: Sunday, March 13, 2022 4:50 PM To: Buddy Kresge <buddy.kresge@known2u.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Way to Dynamically import a module? Hi Buddy,
I was wondering if in BaseX there is a way at run time to import a .xqm module, outside of the traditional “import module” statement.
Check out inspect:functions [1]. Hope this helps, Christian [1] https://docs.basex.org/wiki/Inspection_Module#inspect:functions
Thank you! Follow up (strange) question. Is there the ability to "unload" a module dynamically?
Imported modules will stay in the context until the query execution is completed.
-----Original Message----- From: Christian Grün <christian.gruen@gmail.com> Sent: Sunday, March 13, 2022 4:50 PM To: Buddy Kresge <buddy.kresge@known2u.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Way to Dynamically import a module?
Hi Buddy,
I was wondering if in BaseX there is a way at run time to import a .xqm module, outside of the traditional “import module” statement.
Check out inspect:functions [1].
Hope this helps, Christian
[1] https://docs.basex.org/wiki/Inspection_Module#inspect:functions
participants (2)
-
Buddy Kresge -
Christian Grün