PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 1.3.1
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v1.3.1
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / core / Db / SchemaInterface.php
matomo / app / core / Db Last commit date
Adapter 6 years ago Schema 6 years ago Adapter.php 6 years ago AdapterInterface.php 6 years ago BatchInsert.php 6 years ago Schema.php 6 years ago SchemaInterface.php 6 years ago Settings.php 6 years ago TransactionLevel.php 6 years ago
SchemaInterface.php
109 lines
1 <?php
2 /**
3 * Piwik - free/libre analytics platform
4 *
5 * @link https://matomo.org
6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
7 *
8 */
9
10 namespace Piwik\Db;
11
12 /**
13 * Database schema interface
14 */
15 interface SchemaInterface
16 {
17 /**
18 * Get the SQL to create a specific Piwik table
19 *
20 * @param string $tableName
21 * @return string SQL
22 */
23 public function getTableCreateSql($tableName);
24
25 /**
26 * Get the SQL to create Piwik tables
27 *
28 * @return array array of strings containing SQL
29 */
30 public function getTablesCreateSql();
31
32 /**
33 * Creates a new table in the database.
34 *
35 * @param string $nameWithoutPrefix The name of the table without any piwik prefix.
36 * @param string $createDefinition The table create definition
37 */
38 public function createTable($nameWithoutPrefix, $createDefinition);
39
40 /**
41 * Create database
42 *
43 * @param string $dbName Name of the database to create
44 */
45 public function createDatabase($dbName = null);
46
47 /**
48 * Drop database
49 */
50 public function dropDatabase();
51
52 /**
53 * Create all tables
54 */
55 public function createTables();
56
57 /**
58 * Creates an entry in the User table for the "anonymous" user.
59 */
60 public function createAnonymousUser();
61
62 /**
63 * Records the Matomo version a user used when installing this Matomo for the first time
64 */
65 public function recordInstallVersion();
66
67 /**
68 * Returns which Matomo version was used to install this Matomo for the first time.
69 */
70 public function getInstallVersion();
71
72 /**
73 * Truncate all tables
74 */
75 public function truncateAllTables();
76
77 /**
78 * Names of all the prefixed tables in piwik
79 * Doesn't use the DB
80 *
81 * @return array Table names
82 */
83 public function getTablesNames();
84
85 /**
86 * Get list of tables installed
87 *
88 * @param bool $forceReload Invalidate cache
89 * @return array installed Tables
90 */
91 public function getTablesInstalled($forceReload = true);
92
93 /**
94 * Get list of installed columns in a table
95 *
96 * @param string $tableName The name of a table.
97 *
98 * @return array Installed columns indexed by the column name.
99 */
100 public function getTableColumns($tableName);
101
102 /**
103 * Checks whether any table exists
104 *
105 * @return bool True if tables exist; false otherwise
106 */
107 public function hasTables();
108 }
109