Skip to content

Commit

Permalink
4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecc-business-account committed Apr 7, 2023
1 parent 8ca8ead commit 90184bb
Show file tree
Hide file tree
Showing 8 changed files with 319 additions and 227 deletions.
99 changes: 51 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ ProductRepo // this class was generated with echo $pdoOne()->generateCodeClass([
* [Table of contents](#table-of-contents)
* [Examples](#examples)
* [Installation](#installation)
* [Install (using composer)](#install--using-composer-)
* [Install (manually)](#install--manually-)
* [Install (using composer)](#install-using-composer)
* [Install (manually)](#install-manually)
* [How to create a Connection?](#how-to-create-a-connection)
* [OCI](#oci)
* [How to run a SQL command?](#how-to-run-a-sql-command)
Expand All @@ -65,48 +65,48 @@ ProductRepo // this class was generated with echo $pdoOne()->generateCodeClass([
* [How to work with Date values?](#how-to-work-with-date-values)
* [How to run a transaction?](#how-to-run-a-transaction)
* [Custom Queries](#custom-queries)
* [tableExist($tableName)](#tableexist--tablename-)
* [statValue($tableName,$columnName)](#statvalue--tablenamecolumnname-)
* [columnTable($tablename)](#columntable--tablename-)
* [foreignKeyTable($tableName)](#foreignkeytable--tablename-)
* [createTable($tableName,$definition,$primaryKey=null,$extra='',$extraOutside='')](#createtable--tablenamedefinitionprimarykeynullextra--extraoutside--)
* [tableSorted($maxLoop = 5, $returnProblems = false, $debugTrace = false)](#tablesorted--maxloop--5-returnproblems--false-debugtrace--false-)
* [validateDefTable($pdoInstance,$tablename,$defTable,$defTableKey)](#validatedeftable--pdoinstancetablenamedeftabledeftablekey-)
* [tableExist($tableName)](#tableexisttablename)
* [statValue($tableName,$columnName)](#statvaluetablenamecolumnname)
* [columnTable($tablename)](#columntabletablename)
* [foreignKeyTable($tableName)](#foreignkeytabletablename)
* [createTable($tableName,$definition,$primaryKey=null,$extra='',$extraOutside='')](#createtabletablenamedefinitionprimarykeynullextraextraoutside)
* [tableSorted($maxLoop = 5, $returnProblems = false, $debugTrace = false)](#tablesortedmaxloop--5-returnproblems--false-debugtrace--false)
* [validateDefTable($pdoInstance,$tablename,$defTable,$defTableKey)](#validatedeftablepdoinstancetablenamedeftabledeftablekey)
* [foreignKeyTable](#foreignkeytable)
* [Query Builder (DQL)](#query-builder--dql-)
* [select($columns)](#select--columns-)
* [count($sql,$arg='*')](#count--sqlarg---)
* [min($sql,$arg='*')](#min--sqlarg---)
* [max($sql,$arg='*')](#max--sqlarg---)
* [sum($sql,$arg='*')](#sum--sqlarg---)
* [avg($sql,$arg='*')](#avg--sqlarg---)
* [distinct($distinct='distinct')](#distinct--distinctdistinct--)
* [from($tables)](#from--tables-)
* [where($where,[$arrayParameters=array()])](#where--where-arrayparametersarray-)
* [Where() without parameters.](#where---without-parameters)
* [Where() with parameters defined by an indexed array.](#where---with-parameters-defined-by-an-indexed-array)
* [Where() using an associative array](#where---using-an-associative-array)
* [Where() using an associative array and named arguments](#where---using-an-associative-array-and-named-arguments)
* [Examples of where()](#examples-of-where--)
* [order($order)](#order--order-)
* [group($group)](#group--group-)
* [having($having,[$arrayParameters])](#having--having-arrayparameters-)
* [Query Builder (DQL)](#query-builder-dql)
* [select($columns)](#selectcolumns)
* [count($sql,$arg='*')](#countsqlarg)
* [min($sql,$arg='*')](#minsqlarg)
* [max($sql,$arg='*')](#maxsqlarg)
* [sum($sql,$arg='*')](#sumsqlarg)
* [avg($sql,$arg='*')](#avgsqlarg)
* [distinct($distinct='distinct')](#distinctdistinctdistinct)
* [from($tables)](#fromtables)
* [where($where,[$arrayParameters=array()])](#wherewherearrayparametersarray)
* [Where() without parameters.](#where-without-parameters)
* [Where() with parameters defined by an indexed array.](#where-with-parameters-defined-by-an-indexed-array)
* [Where() using an associative array](#where-using-an-associative-array)
* [Where() using an associative array and named arguments](#where-using-an-associative-array-and-named-arguments)
* [Examples of where()](#examples-of-where)
* [order($order)](#orderorder)
* [group($group)](#groupgroup)
* [having($having,[$arrayParameters])](#havinghavingarrayparameters)
* [End of the chain](#end-of-the-chain)
* [runGen($returnArray=true)](#rungen--returnarraytrue-)
* [toList($pdoMode)](#tolist--pdomode-)
* [toMeta()](#tometa--)
* [toListSimple()](#tolistsimple--)
* [toListKeyValue()](#tolistkeyvalue--)
* [toResult()](#toresult--)
* [firstScalar($colName=null)](#firstscalar--colnamenull-)
* [first()](#first--)
* [last()](#last--)
* [sqlGen()](#sqlgen--)
* [Query Builder (DML)](#query-builder--dml-)
* [insert($table,$schema,[$values])](#insert--tableschema-values-)
* [insertObject($table,[$declarativeArray],$excludeColumn=[])](#insertobject--table-declarativearray-excludecolumn---)
* [update($$table,$schema,$values,[$schemaWhere],[$valuesWhere])](#update--tableschemavalues-schemawhere--valueswhere-)
* [delete([$table],[$schemaWhere],[$valuesWhere])](#delete--table--schemawhere--valueswhere-)
* [runGen($returnArray=true)](#rungenreturnarraytrue)
* [toList($pdoMode)](#tolistpdomode)
* [toMeta()](#tometa)
* [toListSimple()](#tolistsimple)
* [toListKeyValue()](#tolistkeyvalue)
* [toResult()](#toresult)
* [firstScalar($colName=null)](#firstscalarcolnamenull)
* [first()](#first)
* [last()](#last)
* [sqlGen()](#sqlgen)
* [Query Builder (DML)](#query-builder-dml)
* [insert($table,$schema,[$values])](#inserttableschemavalues)
* [insertObject($table,[$declarativeArray],$excludeColumn=[])](#insertobjecttabledeclarativearrayexcludecolumn)
* [update($$table,$schema,$values,[$schemaWhere],[$valuesWhere])](#updatetableschemavaluesschemawherevalueswhere)
* [delete([$table],[$schemaWhere],[$valuesWhere])](#deletetableschemawherevalueswhere)
* [Cache](#cache)
* [How to configure it?](#how-to-configure-it)
* [Example using apcu](#example-using-apcu)
Expand Down Expand Up @@ -139,13 +139,13 @@ ProductRepo // this class was generated with echo $pdoOne()->generateCodeClass([
* [DML Database Model Language](#dml-database-model-language)
* [Validate the model](#validate-the-model)
* [Recursive](#recursive)
* [recursive()](#recursive--)
* [getRecursive()](#getrecursive--)
* [hasRecursive()](#hasrecursive--)
* [Benchmark (mysql, estimated)](#benchmark--mysql-estimated-)
* [recursive()](#recursive-1)
* [getRecursive()](#getrecursive)
* [hasRecursive()](#hasrecursive)
* [Benchmark (mysql, estimated)](#benchmark-mysql-estimated)
* [migration from 3 to 4](#migration-from-3-to-4)
* [Error FAQs](#error-faqs)
* [Uncaught Error: Undefined constant eftec\_BasePdoOneRepo::COMPILEDVERSION](#uncaught-error--undefined-constant-eftecbasepdoonerepo---compiledversion)
* [Uncaught Error: Undefined constant eftec\_BasePdoOneRepo::COMPILEDVERSION](#uncaught-error-undefined-constant-eftecbasepdoonerepocompiledversion)
* [Changelist](#changelist)
<!-- TOC -->

Expand Down Expand Up @@ -1834,7 +1834,10 @@ In a nutshell:
> Every minor version means that it adds a new functionality i.e. 1.5 -> 1.6 (new methods)
>
> Every decimal version means that it patches/fixes/refactoring a previous functionality i.e. 1.5.0 -> 1.5.1 (fix)
* 4.2 2023-04-07
* [PdoOne] the constructor allows to set the key-value table.
* [PdoOne] new methods getTableKV() getDefaultTableKV(),existKVTable()
* [PdoOneCli] Update to 2.3.1. Now you can enter more values. Also, load and save works in PHP format (it is more flexible)
* 4.1.2 2023-03-21
* str_start_with() is not defined in PHP older than PHP 8.0, so I replaced.
* 4.1.1 2023-03-21
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"require": {
"php": ">=7.2.5",
"ext-json": "*",
"eftec/clione": "^1.26",
"eftec/clione": "^1.28",
"ext-pdo": "*",
"ext-readline": "*",
"eftec/messagecontainer": "^2.8"
Expand Down
Loading

0 comments on commit 90184bb

Please sign in to comment.