pike.git / lib / modules / Sql.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/module.pmod:70:    inherit __builtin.Sql.Connection;   }      //! Base class for the result from @[Connection()->big_query()] et al.   class Result   {    //!    inherit __builtin.Sql.Result;   }    - //! Base class for the result from @[Connection()->promise_query()] et al. + //! Base class for the result from @[Promise].   class FutureResult   {    //!    inherit __builtin.Sql.FutureResult;   }    -  + //! Base class for the result from @[Connection()->promise_query()]. + class Promise + { +  //! +  inherit __builtin.Sql.Promise; + } +    protected program(Connection) find_dbm(string program_name)   {    program(Connection) p;    // we look in Sql.type and Sql.Provider.type.type for a valid sql class.    p = global.Sql[program_name];    if(!p && global.Sql["Provider"] && global.Sql["Provider"][program_name])    p = global.Sql["Provider"][program_name][program_name];    return p;   }