diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-02-15 23:48:26 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-02-15 23:48:26 +0100 |
commit | 7f84e36fb2f6a380635bc773eae32aa42203422c (patch) | |
tree | da87ac3d533d64aa7371b89ff61522c0710a3cc0 /src/DbQuery.php | |
parent | d24d5f2e21fd4bfb5c369e2932a4c62328ffa758 (diff) | |
download | micropoly-7f84e36fb2f6a380635bc773eae32aa42203422c.tar.gz micropoly-7f84e36fb2f6a380635bc773eae32aa42203422c.tar.bz2 micropoly-7f84e36fb2f6a380635bc773eae32aa42203422c.zip |
Improve attachments
- Allow multiple uploads at once
- Make uploads deletable
Diffstat (limited to 'src/DbQuery.php')
-rw-r--r-- | src/DbQuery.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/DbQuery.php b/src/DbQuery.php index 6fd32a1..dddb581 100644 --- a/src/DbQuery.php +++ b/src/DbQuery.php @@ -194,4 +194,9 @@ class DbQuery return $out; }); } + + public function fetchValues(SQLite3 $db): array + { + return array_map(fn ($row) => $row[0], $this->fetchRows($db)); + } }
\ No newline at end of file |