HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.6.8/doc/sqlite3-1.4.2/ri/SQLite3/Database/create_function-i.ri
U:RDoc::AnyMethod[iI"create_function:ETI"&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