Subscribe via RSS
Follow me on Twitter
Error: Please make sure the Twitter account is public.
-
Recent Posts
Archives
- September 2021
- March 2020
- December 2019
- August 2019
- February 2019
- December 2018
- November 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- December 2017
- August 2017
- August 2016
- June 2016
- September 2015
- January 2015
- December 2014
- December 2013
- August 2013
- July 2013
- June 2013
- April 2013
- November 2012
- July 2012
- June 2012
- February 2012
- January 2012
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- September 2010
Links
- OCI*ML Oracle bindings for the OCaml language
Category Archives: SQLite
New Stack Exchange
I’ve been active on Stack Overflow for a while, now there is a new Stack Exchange for DBAs that I have participated in the beta for. Now it’s open to the public, so knock yourselves out! I really need to … Continue reading
Scope in database code (2)
Following on from a previous post, here is some simple database code in hopefully idiomatic Haskell. My strategy is Use the Reader monad to pass the database connection around the functions that use it. The description, computations which read values … Continue reading
Posted in Haskell, SQLite
7 Comments
Scope in database code
When dealing with relational databases, there are three major types of data structure/objects that we need. The actual names vary between platform and API, but generally there will be, in order of creation: A connection. This is often called lda … Continue reading
Posted in Haskell, Ocaml, Oracle, SQLite
4 Comments
Analyzing logfiles (2)
Following on from yesterday’s post, here is a similar tool implemented in Haskell. This one is to process a log format we use for various applications, which is <timestamp>: key1=value1 key2=value2 … keyn=valuen There may be any number of keys, … Continue reading
Posted in Haskell, Ocaml, SQLite
3 Comments
Analyzing logfiles (1)
One powerful technique I often use is to quickly load application or system logs into throwaway SQLite databases for analysis. This means I can easily run queries such as, how many times has event X occurred broken down by hour, … Continue reading
Posted in Linux, Ocaml, SQLite
4 Comments