ã¡ããã¡ããæ¸ãã¦ã SQL::Format ã大ä½ã§ããã®ã§ CPAN ã«ä¸ãã¾ããã æ©è½çã«ã¯ãã£ãã以ä¸ã®ãããªæã sprintf() ã® SQL çã¿ãã㪠sqlf() é¢æ°ã export new() ãã¦ãªãã¸ã§ã¯ãã¨ãã¦ã使ãã select() / insert() / update() / delete() å®å sqlf() ã¨åã format() ããã SQL::Maker 㨠SQL::Abstract ã® syntax ããããªãã«å®è£ ã¨ããæãã§ããªãã¸ã§ã¯ãã¨ãã¦ä½¿ãå ´åã¯ãSQL::Maker ã¨ã SQL::Abstract ã¨éè²ãªã使ãããã¨ã ($stmt, @bind) = sqlf 'SELECT %c FROM %t WHERE %w %o' => ( '*', # %c 'foo', # %t { hoge => 'fuga' }
{{#tags}}- {{label}}
{{/tags}}