Skip to content

Commit

Permalink
Set version to 2.4.0, set release date
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetx committed Dec 3, 2015
1 parent 9b27ecf commit 6957fee
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.idea
test*
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
monty - changelog
=================

2.4.0 (not yet released)
2.4.0 (2015-12-03)
+ #12 Drop support for mysql_*
+ #11 Custom port number
+ #7 Get SQL code without executing it
Expand Down
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ $connector->open('youruser', 'fancypass', 'holydatabase');

// need a custom port number? add a 5th parameter like this:
// $db->open(
// 'youruser', 'fancypass', 'holydatabase',
// 'pentagon.example.com', 3307
// 'youruser', 'fancypass', 'holydatabase',
// 'pentagon.example.com', 3307
// );

// want a persistent connection? add a 6th parameter like this:
// $db->open(
// 'youruser', 'fancypass', 'holydatabase',
// 'pentagon.example.com', 3307, MONTY_OPEN_PERSISTENT
// 'youruser', 'fancypass', 'holydatabase',
// 'pentagon.example.com', 3307, MONTY_OPEN_PERSISTENT
// );

// now there's two operation modes:
Expand All @@ -68,8 +68,10 @@ $table->where('field', '=', 'value');
// $table->select(MONTY_SELECT_DISTINCT);

// you might also want to use ands/ors
// $table->or($table->eq('field1', 'value1'),
// $table->like('field2', 'value2'));
// $table->or(
// $table->eq('field1', 'value1'),
// $table->like('field2', 'value2')
// );
// equals:
// ... WHERE field1 = "value1" OR field2 LIKE "value2"

Expand All @@ -78,8 +80,8 @@ echo $table->sql() . '<br />';

// loop through the results and display them
for($i = 0; $i < $table->rows(); $i++) {
$row_array = $table->next();
echo $row_array['field'] . ' = ' . $row_array['value'] . '<br />';
$row_array = $table->next();
echo $row_array['field'] . ' = ' . $row_array['value'] . '<br />';
}

// you could also have got an object instead, like this:
Expand All @@ -97,13 +99,13 @@ echo $connector->rows();

// check if a certain table exists at the moment:
if ($connector->tableExists('the_table')) {
// do something
// do something
}

// update values
$values = [
'column1' => 'Test',
'column2' => 12345
'column1' => 'Test',
'column2' => 12345
];
$table->update($values);

Expand Down
2 changes: 1 addition & 1 deletion classes/monty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* A simple MySQL/MariaDB database wrapper in PHP.
*
* @package Monty
* @version 2.4.0-dev
* @version 2.4.0
* @author Jublo Solutions <support@jublo.net>
* @copyright 2011-2015 Jublo Solutions <support@jublo.net>
* @license http://opensource.org/licenses/LGPL-3.0 GNU Lesser Public License 3.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jublonet/monty",
"description": "A simple MySQL/MariaDB database wrapper in PHP.",
"version": "2.4.0-dev",
"version": "2.4.0",
"autoload": {
"classmap": ["loader.php"]
},
Expand Down
4 changes: 2 additions & 2 deletions loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* A simple MySQL/MariaDB database wrapper in PHP.
*
* @package Monty
* @version 2.4.0-dev
* @version 2.4.0
* @author Jublo Solutions <support@jublo.net>
* @copyright 2011-2014 Jublo Solutions <support@jublo.net>
* @copyright 2011-2015 Jublo Solutions <support@jublo.net>
* @license http://opensource.org/licenses/LGPL-3.0 GNU Lesser Public License 3.0
* @link https://github.com/jublonet/monty
*/
Expand Down

0 comments on commit 6957fee

Please sign in to comment.