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