{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/718","repository_url":"https://api.github.com/repos/tgriesser/knex","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/718/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/718/events","html_url":"https://github.com/tgriesser/knex/issues/718","id":59584210,"number":718,"title":"Use of Prepared Statements","user":{"login":"sparticvs","id":847020,"avatar_url":"https://avatars.githubusercontent.com/u/847020?v=3","gravatar_id":"","url":"https://api.github.com/users/sparticvs","html_url":"https://github.com/sparticvs","followers_url":"https://api.github.com/users/sparticvs/followers","following_url":"https://api.github.com/users/sparticvs/following{/other_user}","gists_url":"https://api.github.com/users/sparticvs/gists{/gist_id}","starred_url":"https://api.github.com/users/sparticvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparticvs/subscriptions","organizations_url":"https://api.github.com/users/sparticvs/orgs","repos_url":"https://api.github.com/users/sparticvs/repos","events_url":"https://api.github.com/users/sparticvs/events{/privacy}","received_events_url":"https://api.github.com/users/sparticvs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-03-03T02:05:13Z","updated_at":"2017-01-15T16:56:37Z","closed_at":"2015-03-03T12:37:15Z","body":"While skimming the codebase, I don't see any use of prepared statements. Am I missing something?\n"},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/272707827","html_url":"https://github.com/tgriesser/knex/issues/718#issuecomment-272707827","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/718","id":272707827,"user":{"login":"elhigu","id":696345,"avatar_url":"https://avatars.githubusercontent.com/u/696345?v=3","gravatar_id":"","url":"https://api.github.com/users/elhigu","html_url":"https://github.com/elhigu","followers_url":"https://api.github.com/users/elhigu/followers","following_url":"https://api.github.com/users/elhigu/following{/other_user}","gists_url":"https://api.github.com/users/elhigu/gists{/gist_id}","starred_url":"https://api.github.com/users/elhigu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elhigu/subscriptions","organizations_url":"https://api.github.com/users/elhigu/orgs","repos_url":"https://api.github.com/users/elhigu/repos","events_url":"https://api.github.com/users/elhigu/events{/privacy}","received_events_url":"https://api.github.com/users/elhigu/received_events","type":"User","site_admin":false},"created_at":"2017-01-15T16:56:37Z","updated_at":"2017-01-15T16:56:37Z","body":"@minecrawler \r\n\r\nYes parametrization happens automatically. Strings generated in knex documentation page has parameters inlined, because they are generated with `.toString()` method of the query builder. It is just to make documentation more readable.\r\n\r\nTo see parametrized generated sql strings which are sent to database driver you can call `.toSQL()` method of the query builder (`toSQL` and `toString` are documented here http://knexjs.org/#Interfaces-Other).\r\n\r\nI agree that someone could write a chapter about how queries are actually sent to database to the documentation. Pull requests are welcome."}}
{"actor":{"display_login":"elhigu"}}