List:Internals« Previous MessageNext Message »
From:Dana Prescott Kennedy Powers Date:April 2 2001 7:29am
Subject:Re: Perl + Mysql
View as plain text  
Ive been thinking a bit about the cleanest way to integrate an embedded
interpreter and mysqld.
My plan right now is to a enable 'CREATE FUNCTION my_func
RETURNS STRING PERL_NAME "my_perl_script.pl";'. The mysql.func table would be
modified to add an additional column set in sql_yacc.yy, lang_type (other
ideas?), which would indicate how the udf should be loaded - either using
dlopen() ( currently the only option ), or by passing it off to an interpreter
( perl here ). Then we modify UDF_INIT to also include the function name and the
dl path, so that the interpreter can load the appropriate file when necessary.
This hopefully will leave almost all of the current udf code untouched, with the
exception of the dlopen() and dlclose() calls - and shouldnt break existing udf
functions.
Thoughts?
dpk
Thread
Perl + MysqlDana Prescott Kennedy Powers30 Mar
  • Re: Perl + Mysqlbarries30 Mar
    • Re: Perl + Mysqlbarries30 Mar
  • Perl + MysqlMichael Widenius31 Mar
  • Re: Perl + MysqlDana Prescott Kennedy Powers2 Apr
    • Re: Perl + MysqlMichael Widenius2 Apr
  • Re: Perl + MysqlRussell E Glaue9 Apr
    • Re: Perl + MysqlDana Prescott Kennedy Powers10 Apr
      • Re: Perl + MysqlCristian Giussani10 Apr
      • Re: Perl + MysqlRussell E Glaue10 Apr
        • Re: Perl + MysqlDana Prescott Kennedy Powers10 Apr
  • Re: Perl + MysqlRussell E Glaue20 Jun
    • Re: Perl + MysqlDana Powers21 Jun
      • Re: Perl + Mysqlbarries22 Jun
        • Re: Perl + MysqlRussell E Glaue22 Jun
          • Re: Perl + Mysqlbarries22 Jun
            • Re: Perl + MysqlSasha Pachev23 Jun
              • MySQL SNMPRussell E Glaue23 Jun
                • Re: MySQL SNMPSasha Pachev24 Jun
        • Re: Perl + MysqlDana Powers27 Aug
    • Re: Perl + MysqlSinisa Milivojevic22 Jun