pike.git/
lib/
modules/
Sql.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-12-06
2017-12-06 21:11:26 by Stephen R. van den Berg <srb@cuci.nl>
d20dccd65183d4a2f0e1d238b0a243ea2fd898b0 (
40
lines) (+
20
/-
20
)
[
Show
|
Annotate
]
Branch:
master
Sql: Add native support for Time, Date, Timestamp, Interval and TimeTZ types.
64:
} //! Base class for a connection to an SQL database.
-
class
Connection
-
{
-
//!
-
inherit
__builtin.Sql.Connection;
-
}
+
constant
Connection
=
__builtin.Sql.Connection;
//! Base class for the result from @[Connection.big_query()] et al.
-
class
Result
-
{
-
//!
-
inherit
__builtin.Sql.Result;
-
}
+
constant
Result
=
__builtin.Sql.Result;
//! Base class for the result from @[Promise].
-
class
FutureResult
-
{
-
//!
-
inherit
__builtin.Sql.FutureResult;
-
}
+
constant
FutureResult
=
__builtin.Sql.FutureResult;
//! Base class for the result from @[Connection.promise_query()].
-
class
Promise
-
{
+
constant
Promise
= __builtin.Sql.Promise;
+
//!
-
inherit
__builtin.Sql.
Promise
;
-
}
+
constant
Date
=
__builtin.Sql.
Date
;
-
+
//!
+
constant Timestamp = __builtin.Sql.Timestamp;
+
+
//!
+
constant Time = __builtin.Sql.Time;
+
+
//!
+
constant TimeTZ = __builtin.Sql.TimeTZ;
+
+
//!
+
constant Interval = __builtin.Sql.Interval;
+
protected program(Connection) find_dbm(string program_name) { program(Connection) p;