From b6a82d17ce2444f3286bf1dd466b4b23ae44727e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 28 Mar 2024 23:07:09 +0100 Subject: [PATCH] Add basic README --- .gitattributes | 2 ++ README.md | 7 +++++++ tests/TestObject.php | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 tests/TestObject.php diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..064e248 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +tests/ export-ignore +.vscode/ export-ignore diff --git a/README.md b/README.md new file mode 100644 index 0000000..2e217fc --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Async ORM + +Async ORM based on amphp. + +Supports MySQL, Redis, Postgres. + +Features read and write-back caching, type-specific optimizations, and much more! \ No newline at end of file diff --git a/tests/TestObject.php b/tests/TestObject.php new file mode 100644 index 0000000..170d9a5 --- /dev/null +++ b/tests/TestObject.php @@ -0,0 +1,32 @@ +loadedCnt++; + } + protected function onAfterSave(): void + { + $this->saveAfterCnt++; + } + protected function onBeforeSave(): void + { + $this->saveBeforeCnt++; + } +}