This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fd1a92
commit 4e99b8c
Showing
10 changed files
with
734 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install | ||
- psql -c 'CREATE DATABASE "testing";' -U postgres | ||
|
||
script: | ||
- phpunit --coverage-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "appdeck/sql", | ||
"description": "Abstraction to SQL queries by using a PDO Wrapper", | ||
"keywords": ["pdo", "wrapper", "pdo wrapper", "sql", "sql abstraction"], | ||
"homepage": "http://appdeck.github.io/sql", | ||
"license": "GPL-3.0", | ||
"authors": [ | ||
{ | ||
"name": "Flávio Heleno", | ||
"email": "flavio@appdeck.com.br", | ||
"homepage": "http://flavioheleno.me", | ||
"role": "Developer" | ||
}, | ||
{ | ||
"name": "Vinícius Campitelli", | ||
"email": "vinicius@appdeck.com.br", | ||
"homepage": "http://viniciuscampitelli.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.0" | ||
}, | ||
"require-dev": { | ||
"phpdocumentor/phpdocumentor": "2.1.*", | ||
"phpunit/phpunit": "4.0.*" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"SQL": "src", | ||
"SQLTest": "tests" | ||
} | ||
}, | ||
"minimum-stability": "dev" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="true" | ||
backupStaticAttributes="false" | ||
bootstrap="tests/bootstrap.php" | ||
colors="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
forceCoversAnnotation="false" | ||
mapTestClassNameToCoveredClassName="false" | ||
processIsolation="true" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
stopOnIncomplete="false" | ||
stopOnSkipped="false" | ||
strict="false" | ||
verbose="false"> | ||
<testsuites> | ||
<testsuite name="SQL Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
<exclude> | ||
<file>src/SQL/Exception/CacheDisabled.php</file> | ||
<file>src/SQL/Exception/Connection.php</file> | ||
<file>src/SQL/Exception/Query.php</file> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* | ||
* Exception thrown when trying to tag a query with a disabled Query Cache | ||
* | ||
* @copyright 2014 appdeck | ||
* @link http://github.com/appdeck/sql | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 | ||
*/ | ||
|
||
namespace SQL\Exception; | ||
|
||
class CacheDisabled extends \Exception { | ||
protected $message = 'You have to enable cache before tagging a query.'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* | ||
* Exception thrown on Connection Failure | ||
* | ||
* @copyright 2014 appdeck | ||
* @link http://github.com/appdeck/sql | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 | ||
*/ | ||
|
||
namespace SQL\Exception; | ||
|
||
class Connection extends \Exception {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* | ||
* Exception thrown on Query Error | ||
* | ||
* @copyright 2014 appdeck | ||
* @link http://github.com/appdeck/sql | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 | ||
*/ | ||
|
||
namespace SQL\Exception; | ||
|
||
class Query extends \Exception {} |
Oops, something went wrong.