Home
last modified time | relevance | path

Searched refs:pdo (Results 26 – 46 of 46) sorted by path

12

/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/PropertyStorage/Backend/
H A DPDOMysqlTest.php9 $pdo = \Sabre\TestUtil::getMySQLDB();
10 if (!$pdo) $this->markTestSkipped('MySQL is not enabled');
16 $pdo->exec('DROP TABLE IF EXISTS propertystorage');
21 $pdo->exec($sql);
24 …$pdo->exec('INSERT INTO propertystorage (path, name, value) VALUES ("dir", "{DAV:}displayname", "D…
26 return $pdo;
H A DPDOSqliteTest.php9 $pdo = \Sabre\TestUtil::getSqliteDB();
10 if (!$pdo) $this->markTestSkipped('Sqlite is not enabled');
16 $pdo->exec('DROP TABLE IF EXISTS propertystorage');
21 $pdo->exec($sql);
24 …$pdo->exec('INSERT INTO propertystorage (path, name, value) VALUES ("dir", "{DAV:}displayname", "D…
26 return $pdo;
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAVACL/PrincipalBackend/
H A DAbstractPDOTest.php15 $pdo = $this->getPDO();
16 $backend = new PDO($pdo);
26 $pdo = $this->getPDO();
27 $backend = new PDO($pdo);
52 $pdo = $this->getPDO();
53 $backend = new PDO($pdo);
69 $pdo = $this->getPDO();
79 $pdo = $this->getPDO();
89 $pdo = $this->getPDO();
108 $pdo = $this->getPDO();
[all …]
H A DPDOMySQLTest.php16 $pdo = \Sabre\TestUtil::getMySQLDB();
17 if (!$pdo) $this->markTestSkipped('Could not connect to MySQL database');
18 $pdo->query("DROP TABLE IF EXISTS principals");
19 $pdo->query("
29 …$pdo->query("INSERT INTO principals (uri,email,displayname) VALUES ('principals/user','user@exampl…
30 …$pdo->query("INSERT INTO principals (uri,email,displayname) VALUES ('principals/group','group@exam…
31 $pdo->query("DROP TABLE IF EXISTS groupmembers");
32 $pdo->query("CREATE TABLE groupmembers (
39 $pdo->query("INSERT INTO groupmembers (principal_id,member_id) VALUES (2,1)");
41 return $pdo;
H A DPDOSqliteTest.php23 $pdo = new \PDO('sqlite:'.SABRE_TEMPDIR.'/pdobackend');
24 $pdo->setAttribute(\PDO::ATTR_ERRMODE,\PDO::ERRMODE_EXCEPTION);
25 …$pdo->query('CREATE TABLE principals (id INTEGER PRIMARY KEY ASC, uri TEXT, email VARCHAR(80), dis…
26 … $pdo->query('INSERT INTO principals VALUES (1, "principals/user","user@example.org","User")');
27 … $pdo->query('INSERT INTO principals VALUES (2, "principals/group","group@example.org","Group")');
29 $pdo->query("CREATE TABLE groupmembers (
36 $pdo->query("INSERT INTO groupmembers (principal_id,member_id) VALUES (2,1)");
38 return $pdo;
/plugin/davcal/vendor/sabre/dav/tests/Sabre/
H A DTestUtil.php41 $pdo = new \PDO(SABRE_MYSQLDSN,SABRE_MYSQLUSER,SABRE_MYSQLPASS);
42 $pdo->setAttribute(\PDO::ATTR_ERRMODE,\PDO::ERRMODE_EXCEPTION);
43 return $pdo;
52 $pdo = new \PDO('sqlite:'.SABRE_TEMPDIR.'/pdobackend');
53 $pdo->setAttribute(\PDO::ATTR_ERRMODE,\PDO::ERRMODE_EXCEPTION);
54 return $pdo;
/plugin/dbquery/_test/
H A DHelperTest.php66 $pdo = $this->hlp->getPDO('sqlite:', '', '');
77 $sth = $this->hlp->prepareStatement($pdo, $sql, $parameters);
/plugin/dbquery/
H A Dhelper.php12 protected $pdo = []; variable in helper_plugin_dbquery
48 if (isset($this->pdo[$conid])) return $this->pdo[$conid];
56 $this->pdo[$conid] = new PDO($dsn, $user, $pass, $opts);
57 return $this->pdo[$conid];
74 $pdo = $this->getPDO();
76 $sth = $this->prepareStatement($pdo, $query, $params);
87 * @param PDO $pdo
92 public function prepareStatement(\PDO $pdo, $sql, $parameters) argument
105 $sth = $pdo->prepare($sql);
/plugin/findologicxmlexport/vendor/phpunit/phpunit/tests/Regression/GitHub/
H A D1351.phpt5 if (!extension_loaded('pdo') || !in_array('sqlite', PDO::getAvailableDrivers())) {
/plugin/ipban/ip-lib/
H A DREADME.md283 * - $pdo is a PDO instance
289 $insertQuery = $pdo->prepare('
300 $searchQuery = $pdo->prepare('
/plugin/smtp/subtree/txtthinking/Mailer/
H A Dcomposer.lock68 "ext-pdo": "*",
/plugin/sqlite/
H A DFunctions.php18 * @param \PDO $pdo
20 public static function register($pdo)
22 $pdo->sqliteCreateAggregate(
28 $pdo->sqliteCreateFunction('GETACCESSLEVEL', [Functions::class, 'getAccessLevel'], 1);
29 $pdo->sqliteCreateFunction('PAGEEXISTS', [Functions::class, 'pageExists'], 1);
30 $pdo->sqliteCreateFunction('REGEXP', [Functions::class, 'regExp'], 2);
31 $pdo->sqliteCreateFunction('CLEANID', 'cleanID', 1);
32 $pdo->sqliteCreateFunction('RESOLVEPAGE', [Functions::class, 'resolvePage'], 1);
21 register($pdo) global() argument
H A DSQLiteDB.php22 protected $pdo; variable in dokuwiki\\plugin\\sqlite\\SQLiteDB
48 if (!class_exists('pdo') || !in_array('sqlite', \PDO::getAvailableDrivers())) {
63 $this->pdo = new \PDO(
85 Functions::register($this->pdo);
110 $this->pdo = null;
130 return $this->pdo;
149 $stmt = $this->pdo->prepare($sql);
395 return $this->pdo->quote($value);
439 $this->pdo->beginTransaction();
445 $this->pdo
[all...]
/plugin/webdav/
H A Dcomposer.lock96 "ext-pdo": "*"
/plugin/webdav/vendor/sabre/dav/lib/CalDAV/Backend/
H A DPDO.php43 protected $pdo; variable in Sabre\\CalDAV\\Backend\\PDO
126 function __construct(\PDO $pdo) { argument
128 $this->pdo = $pdo;
169 $stmt = $this->pdo->prepare(<<<SQL
264 $calendarId = $this->pdo->lastInsertId(
521 $stmt = $this->pdo->prepare($query);
847 $stmt = $this->pdo->prepare($query);
900 $stmt = $this->pdo->prepare($query);
1170 return $this->pdo->lastInsertId(
1354 $insertStmt = $this->pdo->prepare('
[all …]
H A DSimplePDO.php41 protected $pdo; variable in Sabre\\CalDAV\\Backend\\SimplePDO
48 function __construct(\PDO $pdo) { argument
50 $this->pdo = $pdo;
81 …$stmt = $this->pdo->prepare("SELECT id, uri FROM simple_calendars WHERE principaluri = ? ORDER BY …
112 … $stmt = $this->pdo->prepare("INSERT INTO simple_calendars (principaluri, uri) VALUES (?, ?)");
115 return $this->pdo->lastInsertId();
127 $stmt = $this->pdo->prepare('DELETE FROM simple_calendarobjects WHERE calendarid = ?');
130 $stmt = $this->pdo->prepare('DELETE FROM simple_calendars WHERE id = ?');
168 …$stmt = $this->pdo->prepare('SELECT id, uri, calendardata FROM simple_calendarobjects WHERE calend…
242 …$stmt = $this->pdo->prepare('INSERT INTO simple_calendarobjects (calendarid, uri, calendardata) VA…
[all …]
/plugin/webdav/vendor/sabre/dav/lib/CardDAV/Backend/
H A DPDO.php24 protected $pdo; variable in Sabre\\CardDAV\\Backend\\PDO
48 function __construct(\PDO $pdo) { argument
50 $this->pdo = $pdo;
135 $stmt = $this->pdo->prepare($query);
181 $stmt = $this->pdo->prepare($query);
183 return $this->pdo->lastInsertId(
197 … $stmt = $this->pdo->prepare('DELETE FROM ' . $this->cardsTableName . ' WHERE addressbookid = ?');
200 … $stmt = $this->pdo->prepare('DELETE FROM ' . $this->addressBooksTableName . ' WHERE id = ?');
288 $stmt = $this->pdo->prepare($query);
487 $stmt = $this->pdo->prepare($query);
[all …]
/plugin/webdav/vendor/sabre/dav/lib/DAV/Auth/Backend/
H A DPDO.php19 protected $pdo; variable in Sabre\\DAV\\Auth\\Backend\\PDO
36 function __construct(\PDO $pdo) { argument
38 $this->pdo = $pdo;
51 … $stmt = $this->pdo->prepare('SELECT digesta1 FROM ' . $this->tableName . ' WHERE username = ?');
/plugin/webdav/vendor/sabre/dav/lib/DAV/Locks/Backend/
H A DPDO.php29 * @var pdo
31 protected $pdo; variable in Sabre\\DAV\\Locks\\Backend\\PDO
38 function __construct(\PDO $pdo) { argument
40 $this->pdo = $pdo;
91 $stmt = $this->pdo->prepare($query);
135 …$stmt = $this->pdo->prepare('UPDATE ' . $this->tableName . ' SET owner = ?, timeout = ?, scope = ?…
146 …$stmt = $this->pdo->prepare('INSERT INTO ' . $this->tableName . ' (owner,timeout,scope,depth,uri,c…
173 … $stmt = $this->pdo->prepare('DELETE FROM ' . $this->tableName . ' WHERE uri = ? AND token = ?');
/plugin/webdav/vendor/sabre/dav/lib/DAV/PropertyStorage/Backend/
H A DPDO.php43 protected $pdo; variable in Sabre\\DAV\\PropertyStorage\\Backend\\PDO
57 function __construct(\PDO $pdo) { argument
59 $this->pdo = $pdo;
87 $stmt = $this->pdo->prepare($query);
128 if ($this->pdo->getAttribute(\PDO::ATTR_DRIVER_NAME) === 'pgsql') {
146 $updateStmt = $this->pdo->prepare($updateSql);
147 …$deleteStmt = $this->pdo->prepare("DELETE FROM " . $this->tableName . " WHERE path = ? AND name = …
194 …$stmt = $this->pdo->prepare("DELETE FROM " . $this->tableName . " WHERE path = ? OR path LIKE ? E…
225 …$select = $this->pdo->prepare('SELECT id, path FROM ' . $this->tableName . ' WHERE path = ? OR pa…
228 $update = $this->pdo->prepare('UPDATE ' . $this->tableName . ' SET path = ? WHERE id = ?');
/plugin/webdav/vendor/sabre/dav/lib/DAVACL/PrincipalBackend/
H A DPDO.php41 protected $pdo; variable in Sabre\\DAVACL\\PrincipalBackend\\PDO
70 function __construct(\PDO $pdo) { argument
72 $this->pdo = $pdo;
101 … $result = $this->pdo->query('SELECT ' . implode(',', $fields) . ' FROM ' . $this->tableName);
145 …$stmt = $this->pdo->prepare('SELECT ' . implode(',', $fields) . ' FROM ' . $this->tableName . ' W…
204 $stmt = $this->pdo->prepare($query);
264 $stmt = $this->pdo->prepare($query);
309 $stmt = $this->pdo->prepare($query);
400 …$stmt = $this->pdo->prepare('DELETE FROM ' . $this->groupMembersTableName . ' WHERE principal_id =…
405 …$stmt = $this->pdo->prepare('INSERT INTO ' . $this->groupMembersTableName . ' (principal_id, membe…
[all …]

12