{"action":"closed","issue":{"url":"https://api.github.com/repos/mmottl/postgresql-ocaml/issues/13","labels_url":"https://api.github.com/repos/mmottl/postgresql-ocaml/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mmottl/postgresql-ocaml/issues/13/comments","events_url":"https://api.github.com/repos/mmottl/postgresql-ocaml/issues/13/events","html_url":"https://github.com/mmottl/postgresql-ocaml/issues/13","id":119276027,"number":13,"title":"OCaml class interface for prepared SQL statements","user":{"login":"elfring","id":660477,"avatar_url":"https://avatars.githubusercontent.com/u/660477?v=3","gravatar_id":"","url":"https://api.github.com/users/elfring","html_url":"https://github.com/elfring","followers_url":"https://api.github.com/users/elfring/followers","following_url":"https://api.github.com/users/elfring/following{/other_user}","gists_url":"https://api.github.com/users/elfring/gists{/gist_id}","starred_url":"https://api.github.com/users/elfring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfring/subscriptions","organizations_url":"https://api.github.com/users/elfring/orgs","repos_url":"https://api.github.com/users/elfring/repos","events_url":"https://api.github.com/users/elfring/events{/privacy}","received_events_url":"https://api.github.com/users/elfring/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T07:18:35Z","updated_at":"2015-11-28T18:23:47Z","closed_at":"2015-11-28T18:23:47Z","body":"The class \"connection\" provides a few methods which deal with prepared SQL statements. I imagine that it will be useful to map this software area to an improved class hierarchy.\r\nHow do you think about to add a method like \"create_prepared_statement\" which will generate object instances instead of distinguishing SQL statements by [the parameter \"stm_name\" of the method \"prepare\"](https://github.com/mmottl/postgresql-ocaml/blob/dac9d9559c29caaca7abfb7e4c927fa25f2f7397/lib/postgresql.mli#L595 \"SQL query preparation\")?"}}