From ae59e1376bae318d9f5529c4762ab89e41b55517 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 18 May 2020 15:42:14 +0200 Subject: [PATCH] Add database module draft --- shell.nix | 4 +++- src/database.php | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/database.php diff --git a/shell.nix b/shell.nix index ecf6c85..a9f1c48 100644 --- a/shell.nix +++ b/shell.nix @@ -3,9 +3,11 @@ with pkgs; mkShell { - buildInputs = [ php mysql57 ]; + buildInputs = + [ php74 php74Extensions.pdo_mysql php74Packages.composer mysql57 ]; shellHook = '' + pkill mysql rm -rf .mysql && mkdir .mysql mysqld --datadir="$(pwd)/.mysql" --socket="$(pwd)/.mysql/mysql.sock" --initialize-insecure diff --git a/src/database.php b/src/database.php new file mode 100644 index 0000000..aa0b912 --- /dev/null +++ b/src/database.php @@ -0,0 +1,13 @@ +