List:Internals« Previous MessageNext Message »
From:Michael Widenius Date:April 2 2001 10:03am
Subject:Re: Perl + Mysql
View as plain text  
Hi!

>>>>> "Dana" == Dana Prescott Kennedy Powers
> <dana@stripped> writes:

Dana> Ive been thinking a bit about the cleanest way to integrate an embedded
Dana> interpreter and mysqld.
Dana> My plan right now is to a enable 'CREATE FUNCTION my_func
Dana> RETURNS STRING PERL_NAME "my_perl_script.pl";'. The mysql.func table would be
Dana> modified to add an additional column set in sql_yacc.yy, lang_type (other
Dana> ideas?), which would indicate how the udf should be loaded - either using
Dana> dlopen() ( currently the only option ), or by passing it off to an interpreter
Dana> ( perl here ). Then we modify UDF_INIT to also include the function name and the
Dana> dl path, so that the interpreter can load the appropriate file when necessary.
Dana> This hopefully will leave almost all of the current udf code untouched, with the
Dana> exception of the dlopen() and dlclose() calls - and shouldnt break existing udf
Dana> functions.

Dana> Thoughts?
Dana> dpk

Sounds like the right way to do this.

Regards,
Monty
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