From c828f7aedd1adc67a7e46de20a7e4874ed0b240a Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Mon, 21 Oct 2019 09:26:16 +0200 Subject: [PATCH] --- Home.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Home.md diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..9ee92ae --- /dev/null +++ b/Home.md @@ -0,0 +1,50 @@ +# PHP XML Database Class + +> The goal of this project is to get a PHP class managing a database in XML format as it would be in MySQL (but with less options obviously) + + +----- + + +## Database Format + +```xml + + + + + false + 950 + 42 + + + true + Paris + 605 + 648 + +
+ + + false + 80 + 10 + Times New Roman, serif + 20px + %A %d %B %Y - %H:%M:%S + #000 + +
+
+``` + +As you can see, the XML contains only one Database but an infinite (well, not that much ;) ) number of Tables with a unique name and in which you can have _items_ that could be compared to _rows_ in MySQL. +The differences are : +* In a table, you can have _items_ with different attributes as you can see in _table1_ +* Attributes can't have different formats (for now). Everything is a @string@. Of course, you can convert them later. +* You can *move* items from table to table! You could even move them to a precise location into your file! + +## "SQL" command syntax + +[Data definition] ( like _Create Database_, _Drop Database_, _Create Table_, _Drop Table_ ) +[Data manipulation] ( like _Insert_, _Delete_, _Update_, _Select_, _Move_ (experimental, only with XMLDB !) ) \ No newline at end of file