From 12e0e017f668fedafdbe4bc0ba2c940f0e309eb2 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 22 Apr 2010 22:56:04 +0300 Subject: [PATCH] unfinished draft of LiteMySQL --- ...6-litemysql-activerecords-little-brother.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source/blog/_posts/2010-04-16-litemysql-activerecords-little-brother.md diff --git a/source/blog/_posts/2010-04-16-litemysql-activerecords-little-brother.md b/source/blog/_posts/2010-04-16-litemysql-activerecords-little-brother.md new file mode 100644 index 0000000..e430bd1 --- /dev/null +++ b/source/blog/_posts/2010-04-16-litemysql-activerecords-little-brother.md @@ -0,0 +1,18 @@ +--- +layout: post +title: "LiteMySQL: ActiveRecord's Little Brother" +categories: [technology, database, php] +--- + +Ever needed a quick and lightweight MySQL library for PHP? Pulling out a full ORM is just overkill, but writing the PHP code needed to connect to the server, run a query, and process the results is a lot of hassle? I thought so. I've been there too. + +So what if you could do something like this: + +{% highlight php %} +find_all(array("author" => "John Twelve Hawks")); +?> +{% endhighlight %} + +The above code would require about 8-10 lines of PHP code if you went barebones. I'm not gonna show a barebones example, cause frankly I'm even now too lazy to write such code. \ No newline at end of file