Commit graph

85 commits

Author SHA1 Message Date
Joby Elliott
40e1d5df26 enable disabling transactions 2022-06-08 11:11:28 -06:00
4018095088
Better transaction handling 2022-06-08 10:28:45 -06:00
11e6e43072
handle PDO exceptions in createSchemaTable 2022-06-06 13:05:38 -06:00
da7660fa20
V1.6 (#3)
* changes to id generation
* handling cases where PDO throws exceptions
2022-06-04 14:13:20 -06:00
Joby Elliott
f9a95898d4
Test overhaul (#2)
* first attempt at PHPUnit tests in github actions

* composer ignore platform deps

* another try

* plumbing

* pdo auth

* more plumbing

* doing env variables right

* will this work?

* calling phpunit directly

* don't specify test

* export

* bug fix

* trying something

* trying another thing

* trying again

* trying it right

* might work this time

* testing can't work on 7.0
2022-05-27 10:44:41 -06:00
Joby Elliott
2f94e2f7eb
Update Factory.php 2020-09-22 09:28:54 -06:00
d5dcb941a4 factory method for checking if environment needs updating 2020-08-29 20:59:27 -06:00
Joby Elliott
16fbacf072
legacy handling
save current schema if no schema is saved for an existing table
2020-08-29 16:23:51 -06:00
110c11dbb2 updated and simplified examples 2020-08-29 15:54:37 -06:00
Joby Elliott
0d1677a9b4
Schema management (#1)
* saves schemas to database, uses those schemas - still need to finish methods for update/add/remove operations on columns, for updating schemas

* fix for schema table creation

* possible test fixes

* possibly working, dropped some non-integration tests that didn't work with schema changes

* seems working, but still needs schema updating

* mysql's schema updates seem to be working

* mariadb driver tests

* change to how saving schema for createTable works

* very basic tests for schema management

* test that schemas are updated in schema table
2020-08-29 15:28:45 -06:00
bc3fe54e1c updated readme, new Search helper methods 2020-08-28 09:36:21 -06:00
fc506d38a2 update to readme 2020-08-27 11:46:13 -06:00
7b125b4d92 SQLite support for virtual columns 2020-08-27 11:42:11 -06:00
5e9b8b0078 cleanup, examples 2020-08-26 11:53:27 -06:00
a452a5f90b removing defunct tests 2020-08-26 10:02:24 -06:00
d99c09e575 exception error mode actually won't work 2020-08-26 09:58:08 -06:00
5526097af4 Merge branch 'main' of github.com:jobyone/destructr into main 2020-08-26 09:53:06 -06:00
4bf591804c style fixes, create table fixes, MariaDB fixes 2020-08-26 09:52:25 -06:00
e088cc47aa fixing test 2020-07-23 12:10:17 -06:00
922eac342d removing incorrect references 2020-07-23 12:05:52 -06:00
62102fbf9f tests are working again 2020-06-23 16:00:20 -06:00
5b8d557f19 trying to break travis tests to verify 2020-06-23 15:58:55 -06:00
9a9f052c1a attempting to run tests in travis 2020-06-23 15:56:28 -06:00
Joby Elliott
45c7053db0 Update Search.php 2020-01-07 18:26:26 +00:00
Joby Elliott
770c413d7f new quote method for strings 2020-01-07 18:15:33 +00:00
Joby Elliott
94a87f91fa adding counting methods 2019-10-17 09:35:31 -06:00
Joby Elliott
d5ed2af885 Update README.md 2019-08-23 17:04:13 +00:00
Joby Elliott
39537ba978 Fix for preprocessSearch losing limit/offset 2019-04-01 16:38:58 +00:00
Joby Elliott
fd366a1297 added $sneaky arg to update()
this new argument allows update hooks to be skipped (for example, to 
avoid updating updated date for migration-type tasks)
2019-03-13 12:27:46 -06:00
Joby Elliott
a388c15650 fixing tests 2019-03-13 10:04:00 -06:00
Joby Elliott
385f6c2b89 Allow instantiation with existing PDOs 2019-03-13 09:50:51 -06:00
Joby Elliott
7f70b8839e updated readme 2019-03-06 11:20:26 -07:00
Joby Elliott
b6c9da5890 Update README.md 2019-01-12 05:50:53 +00:00
Joby Elliott
9eae36c1b0 Update README.md 2019-01-12 05:49:18 +00:00
ef9cd13b18 Fixed a merge/set bug with falsey values
Also copied the basic FlatArray tests from Flatrr, to help avoid future 
regressions to FlatArray behavior.
2019-01-11 18:41:44 -07:00
Joby Elliott
c72b1e3ada specify mysql version because of an auth problem 2018-11-06 10:20:55 -07:00
Joby Elliott
5f47889800 squelch array to string conversions in JSON_EXTRACT 2018-11-05 13:23:58 -07:00
Joby Elliott
4bddaea0a8 Merge branch '1-primary-keys-in-ddls'
because I accidentally lost these changes in some weird merges
2018-09-25 11:37:45 -06:00
Joby Elliott
9558cca950 Merge branch 'master' of gitlab.com:byjoby/destructr 2018-09-25 11:31:11 -06:00
Joby Elliott
ddce5a8275 PERSISTENT is STORED in MySQL 2018-09-25 11:20:17 -06:00
Joby Elliott
8677ce5857 pick whether virtual columns are persistent or virtual based on primary 2018-09-25 11:07:14 -06:00
Joby Elliott
29559fb18f get more information on failed createTable test 2018-09-25 11:03:41 -06:00
Joby Elliott
1f839dba3b trying to fix MySQL CI 2018-09-25 10:57:29 -06:00
Joby Elliott
e13aca5503 initial commit with primary keys 2018-09-25 10:49:54 -06:00
Joby Elliott
1ea866da71 Merge branch 'develop' into 'master'
merging CI and nailed-down drivers

See merge request byjoby/destructr!2
2018-09-19 21:20:20 +00:00
Joby Elliott
3168f4ad11 merging CI and nailed-down drivers 2018-09-19 21:20:20 +00:00
Joby Elliott
feed01b327 squash mysterious notice coming out of fetchAll() 2018-09-19 15:14:32 -06:00
Joby Elliott
22602cffd2 renaming mysql tests 2018-09-14 12:19:55 -06:00
Joby Elliott
c9938955f9 attempt at getting MySQL tests working 2018-09-14 12:17:54 -06:00
Joby Elliott
03826b87d6 reorganizing tests 2018-09-14 12:04:28 -06:00