pike.git
/
lib
/
modules
/
Sql.pmod
/
module.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/module.pmod:57:
a = (a[..<1] * "@")/":"; string user = a[0]; if (sizeof(a) > 1) { sql_url = prot + "://" + user + ":CENSORED@" + host; } } return sql_url; } //! Base class for a connection to an SQL database.
-
class Connection
-
{
-
//!
-
inherit __builtin.Sql.Connection;
-
}
+
class Connection
{ inherit __builtin.Sql.Connection;
}
//! Base class for the result from @[Connection.big_query()] et al.
-
class Result
-
{
-
//!
-
inherit __builtin.Sql.Result;
-
}
+
class Result
{ inherit __builtin.Sql.Result;
}
-
//!
Base
class for the
result from @[Promise].
-
class FutureResult
-
{
-
//!
-
inherit __builtin.Sql.FutureResult;
-
}
+
//!
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;
-
}
+
//!
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; }