1548.2.3
by Barry.Leslie at PrimeBase
Added drizzle event observer class to PBMS as well as a lot of mostly minor changes for drizzle compatability. |
1 |
/*
|
2 |
* Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
|
|
3 |
*
|
|
4 |
* This program is free software; you can redistribute it and/or modify
|
|
5 |
* it under the terms of the GNU General Public License as published by
|
|
6 |
* the Free Software Foundation; version 2 of the License.
|
|
7 |
*
|
|
8 |
* This program is distributed in the hope that it will be useful,
|
|
9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
* GNU General Public License for more details.
|
|
12 |
*
|
|
13 |
* You should have received a copy of the GNU General Public License
|
|
14 |
* along with this program; if not, write to the Free Software
|
|
15 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
16 |
*
|
|
17 |
* Barry Leslie
|
|
18 |
*
|
|
19 |
* 2010-06-01
|
|
20 |
*/
|
|
21 |
||
2234
by Brian Aker
Mass removal of ifdef/endif in favor of pragma once. |
22 |
#pragma once
|
1548.2.3
by Barry.Leslie at PrimeBase
Added drizzle event observer class to PBMS as well as a lot of mostly minor changes for drizzle compatability. |
23 |
|
24 |
#include <drizzled/plugin/event_observer.h> |
|
25 |
#include "parameters_ms.h" |
|
26 |
||
27 |
namespace drizzled |
|
28 |
{
|
|
29 |
||
30 |
namespace plugin |
|
31 |
{
|
|
32 |
class PBMSEvents: public EventObserver |
|
33 |
{
|
|
34 |
public: |
|
35 |
||
36 |
PBMSEvents(): EventObserver(std::string("PBMSEvents")) |
|
37 |
{
|
|
38 |
// Databases that I never want to observe events in.
|
|
1548.2.6
by Barry.Leslie at PrimeBase
trunk merge plus more pbms updates for drizzle. |
39 |
PBMSParameters::blackListedDB("pbms"); |
40 |
PBMSParameters::blackListedDB("DATA_DICTIONARY"); |
|
41 |
PBMSParameters::blackListedDB("INFORMATION_SCHEMA"); |
|
1548.2.3
by Barry.Leslie at PrimeBase
Added drizzle event observer class to PBMS as well as a lot of mostly minor changes for drizzle compatability. |
42 |
}
|
43 |
||
44 |
void registerTableEventsDo(TableShare &table_share, EventObserverList &observers); |
|
45 |
void registerSchemaEventsDo(const std::string &db, EventObserverList &observers); |
|
1548.2.6
by Barry.Leslie at PrimeBase
trunk merge plus more pbms updates for drizzle. |
46 |
void registerSessionEventsDo(Session &session, EventObserverList &observers); |
47 |
||
1548.2.3
by Barry.Leslie at PrimeBase
Added drizzle event observer class to PBMS as well as a lot of mostly minor changes for drizzle compatability. |
48 |
bool observeEventDo(EventData &); |
49 |
||
50 |
};
|
|
51 |
} /* namespace plugin */ |
|
52 |
} /* namespace drizzled */ |