From 883db29806937ec5061f1eccdef7e07d7f4f9a60 Mon Sep 17 00:00:00 2001 From: jorgecc Date: Sun, 20 Feb 2022 08:51:47 -0300 Subject: [PATCH] * 2.29 2022-02-19 --- README.md | 18 ++++++++++++------ composer.json | 2 +- lib/{pdoonecli.php => pdoonecli} | 8 +++++--- 3 files changed, 18 insertions(+), 10 deletions(-) rename lib/{pdoonecli.php => pdoonecli} (99%) diff --git a/README.md b/README.md index b2737e7..097980f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ PdoOne. It's a simple wrapper for PHP's PDO library compatible with SQL Server ( This library tries to **work as fast as possible**. Most of the operations are simple string/array managements and work in the bare metal of the PDO library, but it also allows to create an ORM. - [![Packagist](https://img.shields.io/packagist/v/eftec/PdoOne.svg)](https://packagist.org/packages/eftec/PdoOne) [![Total Downloads](https://poser.pugx.org/eftec/PdoOne/downloads)](https://packagist.org/packages/eftec/PdoOne) [![Maintenance](https://img.shields.io/maintenance/yes/2022.svg)]() @@ -40,7 +39,7 @@ $products=$pdoOne or using the ORM. ```php -ProductRepo // this class was generated with echo $pdoOne()->generateCodeClass(['Product']); +ProductRepo // this class was generated with echo $pdoOne()->generateCodeClass(['Product']); or using the cli. ::where("name = ?",[$_POST['name']]) ::toList(); ``` @@ -1367,7 +1366,7 @@ Execute the next line (in the lib folder) (or pointing to the right folder) -> php /var/web/vendor/eftec/lib/pdoonecli.php +> php /var/web/vendor/eftec/lib/pdoonecli ### Run as CLI interative @@ -2011,20 +2010,27 @@ In a nutshell: > > Every decimal version means that it patches/fixes/refactoring a previous functionality i.e. 1.5.0 -> 1.5.1 (fix) +* 2.29 2022-02-20 + + * Added as a binary file + * 2.27 2022-02-19 + * **[core]** lots of cleanups. * **[_BasePdoOneRepo]** update to binary version 8. **You must rebuild the repository classes to rebuild the base class.** + * 2.26 2022-02-19 * **[core]** **[new]** added more type hiting for the arguments for safety and stability of the tool. - * **[cli]** now the CLI is located a different file called pdoonecli.php. Also the CLI has more features than before, including the generation of the OOP classes. + * **[cli]** now the CLI is located a different file called pdoonecli Also the CLI has more features than before, including the generation of the OOP classes. + * 2.25 2022-02-01 * **[core]** **[new]** Key-Value functionalities:setKvDefaultTable(),kv(),createTableKV(),dropTableKV(),getKV(),setKV(),garbageCollectorKV(),delKV(),flushKV(),existKV() * **[core]** **[new]** createIndex() * 2.24.1 2022-02-06 - + * **[core]** **[fix]** Now, most generation of classes are defined in templates instead of the code. It will keep the code clean while it will also save a few bits of memories (old: 6446 lines, current: 5963 lines). - + * 2.24 2022-02-06 * **[repo]** Now the library allows multiple connections using different repository class bases. diff --git a/composer.json b/composer.json index c3d724b..92017c1 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "eftec/messagecontainer": "^2.4" }, "bin": [ - "lib/pdoonecli.php" + "lib/pdoonecli" ], "suggest": { "eftec/validationone": "For keeping and storing the messages" diff --git a/lib/pdoonecli.php b/lib/pdoonecli similarity index 99% rename from lib/pdoonecli.php rename to lib/pdoonecli index 4b5501d..cd4c2af 100644 --- a/lib/pdoonecli.php +++ b/lib/pdoonecli @@ -15,18 +15,20 @@ * How to execute it?
* In the command line, runs the next line:
*
- * php folder/pdoonecli.php
+ * php vendor/eftec/PdoOne/lib/pdoonecli
+ * or
+ * vendor/bin/pdoonecli (Linux/macOS) / vendor/bin/pdoonecli.bat (Windows)
  * 
* * @see https://github.com/EFTEC/PdoOne * @package eftec * @author Jorge Castro Castillo * @copyright (c) Jorge Castro C. Dual Licence: MIT and Commercial License https://github.com/EFTEC/PdoOne - * @version 0.9 + * @version 0.10 */ class pdoonecli { - public const VERSION = '0.9'; + public const VERSION = '0.10'; // /** * @var mixed