Shish
a4ff796b35
remove dead code
2020-10-27 21:51:34 +00:00
Shish
6c223d16bd
use inTransaction() instead of trying to maintain our own state
2020-10-27 21:51:15 +00:00
Shish
ea29e29a06
mostly postgres doesn't need migrating
2020-10-26 23:38:52 +00:00
Shish
cc06df171a
Argh, that doesn't work for OTHER versions of sqlite...
...
This reverts commit 55e3cb5d63
.
2020-10-26 22:37:25 +00:00
Shish
55e3cb5d63
compatibility with out-of-date sqlite: use '(1=0)' instead of 'false'
2020-10-26 22:33:11 +00:00
Shish
631cf29424
argh
2020-10-26 17:29:05 +00:00
Shish
08a4a6d41f
pm also used char for postgres
2020-10-26 17:28:21 +00:00
Shish
4d6dc7e98b
standardise_boolean function to ease conversion
2020-10-26 17:03:42 +00:00
Matthew Barbour
0fc0b8e723
Added get_pairs_iterable to database object
2020-10-08 17:24:09 -05:00
Shish
e696357c06
database notification API
2020-10-03 12:54:38 +00:00
Shish
2197b15012
Add core/sanitize_php.php
...
A small number of PHP-sanity things (eg don't silently ignore errors) to
be included right at the very start of index.php and tests/bootstrap.php
2020-06-24 14:54:46 +01:00
Matthew Barbour
9b9f1d0341
Cleaned up some warnings in bulk import/export extension
...
Added transactions to bulk import
Renamed beginTransaction to begin_transaction for naming consistency
Updated cron uploader to handle bulk import transactions
2020-06-23 15:07:00 +01:00
Shish
511a82f2ba
include database version in sys info
2020-03-26 16:57:08 +00:00
Matthew Barbour
6947b726f0
Added exists function to database object
2020-03-02 15:42:28 +00:00
Shish
e91acbb2c2
remove unused scoreql parameters
2020-02-01 22:51:30 +00:00
Shish
3f689b68bc
MockDatabase didn't get used
2020-02-01 21:32:38 +00:00
Shish
f0f3cc7aa0
merge layout stuff into Page class
2020-02-01 18:11:11 +00:00
Shish
6d3ca01424
format
2020-01-29 00:49:26 +00:00
Shish
ac1076b3f3
don't use string concatenation for sql
2020-01-28 00:49:51 +00:00
Shish
9ac8246fa2
fixes
2020-01-27 22:22:07 +00:00
Shish
7e43e2e304
split www stuff to index.php and test things to tests/bootstrap.php
2020-01-27 19:28:58 +00:00
Shish
903679dc53
more stuff into regular functions
2020-01-27 18:24:11 +00:00
Shish
9eb5acf2dc
use strict types
2020-01-26 16:27:56 +00:00
Shish
cb29d07ecc
get rid of exists(), because rowCount doesn't work consistently
2019-12-10 01:17:14 +00:00
Shish
6b2304af93
format
2019-11-27 12:13:04 +00:00
Shish
861def1aa3
be explicit about using FFS-PHP's PDO not vanilla PDO
2019-11-26 10:26:38 +00:00
Shish
a175405210
replace ipban page with microcrud
2019-11-24 15:59:14 +00:00
Shish
c94f289291
html_escape all exception messages - pass query out-of-band if we want it formatted
2019-11-11 16:43:42 +00:00
Shish
55c6854003
formatting
2019-11-02 19:57:34 +00:00
Matthew Barbour
3efa76c6a2
Added set_timeout to database and engine
2019-10-18 16:34:12 +01:00
Matthew Barbour
d1853ee1db
Added scoreql option to database functions to make using scoreql less verbose
...
Added exists function to the database
2019-10-18 16:32:06 +01:00
Shish
e08cdb1638
make Cache its own thing, separate from Database
2019-10-02 10:49:32 +01:00
Shish
486c048950
typo
2019-10-02 09:06:00 +01:00
Shish
704cab4470
type fixes
2019-10-02 09:03:14 +01:00
Shish
08293bd32a
remove hack for ancient php bug
2019-10-01 11:07:38 +01:00
Shish
19c4fcaf34
even with EMULATE_PREPARES=false, sqlite still returns strings for int columns...
2019-09-30 10:40:15 +01:00
Shish
fd2d434c61
return native types (int, float) for mysql
2019-09-30 10:19:47 +01:00
Shish
0f4a0275b5
use is_int instead of is_numeric if we want to reject numeric strings, should fix #681
2019-09-29 17:58:56 +01:00
Shish
a6bb15d859
formatting
2019-09-29 14:30:55 +01:00
Matthew Barbour
fc294bfb3c
add tracer_enabled check to the database class to prevent unnecessary memory build-up when tracer isn't outputting.
...
Globalized tracer_enabled to make it easier to access
2019-08-01 08:15:43 -05:00
Shish
eb885c443c
trim leading whitespace when logging queries
2019-07-07 19:22:44 +01:00
Shish
b43ad07abe
typo
2019-07-07 15:42:19 +01:00
Shish
1e1ede7db6
log which method was used to wrap db->execute
2019-07-07 15:12:51 +01:00
Shish
bca74a0db5
drop DEBUG_SQL - all of that info is included in the trace file, fixes #674
2019-07-07 13:52:53 +01:00
Shish
99646a4b00
bump tracer api
2019-07-07 13:30:50 +01:00
Shish
3954f3d296
merge iterable queries with new count_time
2019-07-07 11:11:27 +01:00
matthew
d64603674e
Added ability to use generators with database queries.
...
Adapted bulk actions to use generators.
2019-07-07 11:10:40 +01:00
Shish
b285acf70a
tracer-complete needs start time
2019-07-06 23:01:22 +01:00
Shish
8ea78eed6a
have database performance measured in three ways at once, instead of three separate ways
2019-07-06 21:41:48 +01:00
Shish
ccb9c493d5
s/Context/EventTracer/g
2019-07-05 20:49:47 +01:00