1#include <my_global.h>
2#include <mysql/plugin.h>
3#include <mysql_version.h>
4#include "table.h"
5#include "sql_connect.h"
6#include "field.h"
7#include "sql_const.h"
8#include "sql_acl.h"
9
10bool schema_table_store_record(THD *thd, TABLE *table);
11
12#include "client_stats.cc"
13#include "index_stats.cc"
14#include "table_stats.cc"
15#include "user_stats.cc"
16
17static struct st_mysql_information_schema userstat_info=
18{ MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION };
19
20maria_declare_plugin(userstat)
21{
22 MYSQL_INFORMATION_SCHEMA_PLUGIN,
23 &userstat_info,
24 "CLIENT_STATISTICS",
25 "Percona and Sergei Golubchik",
26 "Client Statistics",
27 PLUGIN_LICENSE_GPL,
28 client_stats_init,
29 0,
30 0x0200,
31 NULL,
32 NULL,
33 "2.0",
34 MariaDB_PLUGIN_MATURITY_STABLE
35},
36{
37 MYSQL_INFORMATION_SCHEMA_PLUGIN,
38 &userstat_info,
39 "INDEX_STATISTICS",
40 "Percona and Sergei Golubchik",
41 "Index Statistics",
42 PLUGIN_LICENSE_GPL,
43 index_stats_init,
44 0,
45 0x0200,
46 NULL,
47 NULL,
48 "2.0",
49 MariaDB_PLUGIN_MATURITY_STABLE
50},
51{
52 MYSQL_INFORMATION_SCHEMA_PLUGIN,
53 &userstat_info,
54 "TABLE_STATISTICS",
55 "Percona and Sergei Golubchik",
56 "Table Statistics",
57 PLUGIN_LICENSE_GPL,
58 table_stats_init,
59 0,
60 0x0200,
61 NULL,
62 NULL,
63 "2.0",
64 MariaDB_PLUGIN_MATURITY_STABLE
65},
66{
67 MYSQL_INFORMATION_SCHEMA_PLUGIN,
68 &userstat_info,
69 "USER_STATISTICS",
70 "Percona and Sergei Golubchik",
71 "User Statistics",
72 PLUGIN_LICENSE_GPL,
73 user_stats_init,
74 0,
75 0x0200,
76 NULL,
77 NULL,
78 "2.0",
79 MariaDB_PLUGIN_MATURITY_STABLE
80}
81maria_declare_plugin_end;
82
83