Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Genezzo::Havok::UserFunctions 0.69

    Download button

    No screenshots available
    Downloads: 397  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jeffrey I. Cohen | More programs
    Perl Artistic License / FREE
    March 13th, 2007, 19:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Genezzo::Havok::UserFunctions description

    Genezzo::Havok::UserFunctions is a Perl module to load the user_functions table.

    Genezzo::Havok::UserFunctions is a Perl module to load the user_functions table.

    SYNOPSIS

    # don't say "use Genezzo::Havok::UserFunctions". Update the
    # dictionary havok table:
    select HavokUse('Genezzo::Havok::UserFunctions') from dual;

    NOTE: this module replaces Genezzo::Havok::UserExtend.
    The module Genezzo::XEval::Prepare constructs a function call interface based upon information from the user_functions table:

    create table user_functions ( xid number, xtype char, xname char, args char, owner char, creationdate char, version char, argstyle char, sqlname char, typecheck char );
    xid - a unique id number
    xtype - the string "require" or "function"
    xname - if xtype = "require", then xname is a package name, like "Text::Soundex". if xtype = "function", xname is a function name. A function name may be qualified with a package.
    args - if xtype = "require", an (optional) blank-separated list of functions to import to the default Genezzo namespace. if xtype = "function", supply an actual function body in curly braces.
    owner - owner of the package or function
    creationdate - date row was created
    version
    argstyle - if set to HASH, pass a hash of the dictionary, the dbh, and the array ref function_args, else the function is just passed an array of the function arguments.
    sqlname - currently UNUSED. Will be used to distinguish the perl function name from the SQL function name
    typecheck - currently UNUSED. Will be used to distinguish a supplied type-checking function from a purely SQL execution function.

    Example:

    insert into user_functions values (1, 'require', 'Genezzo::Havok::Examples', 'isRedGreen', 'SYSTEM', '2004-09-21T12:12');

    The row causes UserFunctions to "require Genezzo::Havok::Examples", and it imports "isRedGreen" into the default Genezzo namespace* (actually, it creates a stub function that calls Genezzo::Havok::Examples::isRedGreen").

    An easier method is to use add_user_function, which is defined in Genezzo::Havok::Utils. The equivalent command to load the isRedGreen function is:

    select
    add_user_function(
    'module=Genezzo::Havok::Examples',
    'function=isRedGreen')
    from dual;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    load user_functions | user_functions tabels | Perl module | Genezzo::Havok::User | load | user_functions

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM