U:RDoc::AnyMethod[iI"create_function:EFI"&SQLite3::Database#create_function;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KCreates a new function for use in SQL statements. It will be added as ;TI"H+name+, with the given +arity+. (For variable arity functions, use ;TI"-1 for the arity.);To:RDoc::Markup::BlankLineo; ; [I"GThe block should accept at least one parameter--the FunctionProxy ;TI"Ainstance that wraps this function invocation--and any other ;TI"*arguments it needs (up to its arity).;T@o; ; [I"IThe block does not return a value directly. Instead, it will invoke ;TI"Bthe FunctionProxy#result= method on the +func+ parameter and ;TI"(indicate the return value that way.;T@o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"6db.create_function( "maim", 1 ) do |func, value| ;TI" if value.nil? ;TI" func.result = nil ;TI" else ;TI"1 func.result = value.split(//).sort.join ;TI" end ;TI" end ;TI" ;TI">puts db.get_first_value( "select maim(name) from table" );T: @format0: @fileI"lib/sqlite3/database.rb;T:0@omit_headings_from_table_of_contents_below000[I"=(name, arity, text_rep=Constants::TextRep::UTF8, &block);T@)FI" Database;TcRDoc::NormalClass00