1. A method for facilitating communication between a client application and an event processing server configured to run as part of a single computer process, the method comprising: running, as part of the single computer process, a database connectivity adapter implementing a database connectivity API, wherein the database connectivity adapter is configured to facilitate intra-process communication between the client application and the event processing server via the database connectivity API by: receiving, in response to an invocation of the database connectivity API by the client application, a query language statement to be executed by the event processing server; parsing the query language statement to determine a type of the statement; processing the query language statement based on its type; and invoking a procedure of the event processing server for executing the query language statement by (1) the database connectivity adapter obtaining a reference to a local object instantiated by the event processing server within the same single computer process as the database connectivity adapter and (2) the database connectivity adapter invoking a method of the local object, the invocation of the method of the local object causing execution of the query language statement.