Skip to content

Commit

Permalink
Can now directly include one of the SQL drivers without PUDL core first
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Root authored and Charlie Root committed Oct 1, 2018
1 parent 336a287 commit 127f006
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions clone/pudlClone.php
@@ -1,6 +1,9 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');



////////////////////////////////////////////////////////////////////////////////
//CUSTOMIZABLE INTERFACE TO FORWARD CALLS TO AN EXISTING PUDL INSTANCE
Expand Down
1 change: 1 addition & 0 deletions mssql/pudlMsSql.php
@@ -1,6 +1,7 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlMsShared.php'));
require_once(is_owner(__DIR__.'/pudlMsSqlResult.php'));

Expand Down
1 change: 1 addition & 0 deletions mssql/pudlSqlSrv.php
@@ -1,6 +1,7 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlMsShared.php'));
require_once(is_owner(__DIR__.'/pudlSqlSrvResult.php'));

Expand Down
2 changes: 1 addition & 1 deletion mysql/pudlGalera.php
@@ -1,7 +1,7 @@
<?php



if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlMySqli.php'));


Expand Down
1 change: 1 addition & 0 deletions mysql/pudlMySql.php
@@ -1,6 +1,7 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlMyShared.php'));
require_once(is_owner(__DIR__.'/pudlMySqlResult.php'));

Expand Down
1 change: 1 addition & 0 deletions mysql/pudlMySqli.php
@@ -1,6 +1,7 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlMyShared.php'));
require_once(is_owner(__DIR__.'/pudlMySqliResult.php'));

Expand Down
2 changes: 2 additions & 0 deletions null/pudlNull.php
@@ -1,9 +1,11 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlNullResult.php'));



class pudlNull extends pudl {

public function __construct($data=[], $autoconnect=true) {
Expand Down
2 changes: 2 additions & 0 deletions pdo/pudlPdo.php
@@ -1,9 +1,11 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlPdoResult.php'));



class pudlPdo extends pudl {

public function __construct($data, $autoconnect=true) {
Expand Down
2 changes: 2 additions & 0 deletions pgsql/pudlPgSql.php
@@ -1,9 +1,11 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlPgSqlResult.php'));



class pudlPgSql extends pudl {

public function __destruct() {
Expand Down
2 changes: 2 additions & 0 deletions sql/pudlOdbc.php
@@ -1,9 +1,11 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlOdbcResult.php'));



class pudlOdbc extends pudl {

public function __destruct() {
Expand Down
2 changes: 2 additions & 0 deletions sql/pudlShell.php
@@ -1,9 +1,11 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlShellResult.php'));



class pudlShell extends pudl {
public function __construct($data, $autoconnect=true) {
$this->path = empty($data['path']) ? '' : $data['path'];
Expand Down
2 changes: 2 additions & 0 deletions sql/pudlWeb.php
@@ -1,9 +1,11 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlShellResult.php'));



class pudlWeb extends pudlShell {

public static function instance($data, $autoconnect=true) {
Expand Down
2 changes: 2 additions & 0 deletions sqlite/pudlSqlite.php
@@ -1,9 +1,11 @@
<?php


if (!class_exists('pudl',false)) require_once(__DIR__.'/../pudl.php');
require_once(is_owner(__DIR__.'/pudlSqliteResult.php'));



class pudlSqlite extends pudl {
public function __construct($data=[], $autoconnect=true) {

Expand Down

0 comments on commit 127f006

Please sign in to comment.