Skip to content

Commit 2bc1a8b

Browse files
committed
docs
1 parent 10403ad commit 2bc1a8b

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

app/config/services.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ parameters:
99
# Same format as the connection options used by doctrine for the most part
1010
# @see https://www.doctrine-project.org/projects/doctrine-dbal/en/2.10/reference/configuration.html#configuration
1111
# @see \Doctrine\Bundle\DoctrineBundle\DependencyInjection\Configuration::configureDbalDriverNode
12+
# 'user' = root account for the database instance, should have permissions to create other accounts as well as databases
1213
mariadb_5_5:
1314
host: mariadb_5_5
1415
port: 3306

doc/TODO.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
## Fixes
22

3-
- check if db:create does echo passwords to stderr instead of stdout
4-
5-
- check: regression w. mysql auto drop of users ?
3+
- check: regression w. mysql (& others) auto drop of users ? does it happen if sql execution fails ?
64

75
- adminer:
86
+ can not connect to mariadb 5.5
@@ -22,7 +20,7 @@
2220

2321
- worker+web: add a queued-task implementation, using sf messenger and a db
2422

25-
- web: when listing instances, show the _real_ db version nr.
23+
- web: when listing instances, show the _real_ db version nr, as done by cli.
2624

2725
- web: allow to insert sql snippet, pick the desired instances, run it (queued) and show results
2826

@@ -73,24 +71,28 @@
7371

7472
## Improvements
7573

76-
- allow creating and dropping of a db without associated user
77-
78-
- investigate the possibility of having the clients emitting directly json results instead of plaintext
74+
- improve handling of 'select' queries output
75+
+ test selecting a string with a | character in it =>
76+
+ no client quotes it: to reliably parse columns we have to rely on tabular format, ie. measure header width...
77+
+ sqllite in default output mode is even worse... (see below)
78+
+ test selecting string with length > 200 chars: ok
79+
+ investigate the possibility of having the clients emitting directly json results instead of plaintext
80+
+ also: sqlite 3 has a more 'tabular' mode to display results, but it seems not to be able to calculate col. width automatically...
7981

8082
- improve travis testing:
81-
+ add tests: ...
83+
+ add tests:
84+
+ make sure after query execution there are no leftover users
85+
+ same but with an invalid query
86+
+ ...
8287
+ use 'bats' for shell-driven tests?
8388
+ check if there is anything that we can cache between test runs on travis to speed up the execution
8489
+ add xdebug and enable code coverage while running tests
8590

8691
- improve handling of character sets:
8792
+ allow to use utf16, utf16le, utf16ber as encodings for sqlite
8893
+ add more support for 'universal' charset/collation naming
89-
+ test execution of a sql command which creates a table with a few cols (string, int, ...), inserts a couple of lines
90-
(ascii chars, utf8 basic plane, utf8 multilingual plane) and then selects data from it
91-
92-
- worker: some failures in (temp) db removal are not reported, some are (eg. on mysql, for non existing db).
93-
make it more uniform ?
94+
+ test execution of a sql command which creates a table with a few cols, inserts a couple of lines
95+
(ascii chars, utf8 basic plane, utf8 multilingual plane) and then selects data from it
9496

9597
- admin(er):
9698
+ add sql log file
@@ -122,10 +124,12 @@
122124
+ add shell completion for commands of stack.sh
123125

124126
- worker: improve cli scripts
127+
+ allow to drop many dbs, users in single commands
125128
+ either remove ./vendor/bin/doctrine-dbal or make it actually work
126129
+ make it possible to have uniform table formatting for SELECT-like queries
127130
- test with rows containing multiple cols, newlines, ...
128-
+ when sorting instances, make mariadb_10 go after mariadb_5 and postgresql_10 go after postrgesql_9
131+
- sqlite might be problematic
132+
+ when sorting instances, make mariadb_10 go after mariadb_5 and postgresql_10 go after postgresql_9
129133
+ log by default php errors to /var/log/php and mount that dir on host ?
130134

131135
- worker: sanitize sql execution cmd:

doc/WHATSNEW.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
Version ?? (unreleased)
22
-----------------------
33

4-
- New: new dbconsole command: `user:drop`
4+
- New: added dbconsole command: `user:drop`
55

66
- Improved: results of SELECT commands are now displayed using table formatting for MariaDB and MySQL databases
77
when running dbconsole command `sql:execute`
88

9+
- Improved: the `database:drop` command reports failures more consistently when trying to drop non-existing databases
10+
11+
- Changed: the `database:create` and `database:drop` commands do _not_ create/drop an user account by default any more.
12+
In order to force them do so, you should use the `--user` option
13+
914

1015
Version 0.9
1116
-----------

0 commit comments

Comments
 (0)