Jumat, 01 Maret 2019

User-defined Function

Pada artikel ini, akan dibahas berbagai UDF (user-defined function) yang datang bersama
SQLiteBoy. Berbagai fungsi tersebut ditujukan untuk saling melengkapi dan bekerja sama dengan fungsi-fungsi yang datang bersama SQLite, dan bisa digunakan tanpa atau dengan diaktifkannya extended feature . Setiap nama fungsi akan selalu berawal dengan sqliteboy_. Pemanggilan fungsi tunggal dilakukan dengan statement select. Pemanggilan fungsi dapat dilakukan bertingkat.


User-defined Function
  • sqliteboy_strs(s)
  • sqliteboy_as_integer(s)
  • sqliteboy_as_float(s)
  • sqliteboy_len(s)
  • sqliteboy_md5(s)
  • sqliteboy_sha1(s)
  • sqliteboy_sha224(s)
  • sqliteboy_sha256(s)
  • sqliteboy_sha384(s)
  • sqliteboy_sha512(s)
  • sqliteboy_b64encode(s)
  • sqliteboy_b64decode(s)
  • sqliteboy_randrange(a, b)
  • sqliteboy_randstr(s, a, b)
  • sqliteboy_randstr2(a, b)
  • sqliteboy_randstr3(a, b)
  • sqliteboy_randstr_simple()
  • sqliteboy_is_datetime_format(s, fmt)
  • sqliteboy_is_datetime(s)
  • sqliteboy_is_date(s)
  • sqliteboy_is_time(s)
  • sqliteboy_time()
  • sqliteboy_time2(s)
  • sqliteboy_time3(f)
  • sqliteboy_time3a()
  • sqliteboy_time4(f)
  • sqliteboy_time4a()
  • sqliteboy_time5(s1, s2, mode)
  • sqliteboy_time6(f, year, month, day, mode)
  • sqliteboy_is_leap(n)
  • sqliteboy_lower(s)
  • sqliteboy_upper(s)
  • sqliteboy_swapcase(s)
  • sqliteboy_capitalize(s, what)
  • sqliteboy_justify(s, justify, length, padding)
  • sqliteboy_find(s, sub, position, case)
  • sqliteboy_reverse(s)
  • sqliteboy_repeat(s, n)
  • sqliteboy_count(s, sub, case)
  • sqliteboy_is_valid_email(s)
  • sqliteboy_match(s1, s2)
  • sqliteboy_is_number(n)
  • sqliteboy_is_float(n)
  • sqliteboy_is_integer(n)
  • sqliteboy_normalize_separator(s, separator, remove_space, unique)
  • sqliteboy_split0(s, separator, index)
  • sqliteboy_chunk(s, n, separator, justify, padding)
  • sqliteboy_number_format(n, decimals, decimal_point, thousands_separator)
  • sqliteboy_number_to_words(s, language)
  • sqliteboy_lookup1(table, field, field1, value1, function, distinct)
  • sqliteboy_lookup2(table, field, field1, value1, order, default)
  • sqliteboy_lookup3(table, field, field1, value1, field2, value2, order, default)
  • sqliteboy_split1(s, separator, table, column, convert)
  • sqliteboy_list_datetime1(s, n, interval, table, column, local)
  • sqliteboy_if(s, a, b)
  • sqliteboy_http_remote_addr()
  • sqliteboy_http_user_agent()
  • sqliteboy_app_title()
  • sqliteboy_var_set(name, value)
  • sqliteboy_var_get(name)
  • sqliteboy_var_del(name)
  • sqliteboy_strip_html(s)
  • sqliteboy_x_user()
  • sqliteboy_x_profile_all(u, field, system)
  • sqliteboy_x_profile(u, field)
  • sqliteboy_x_profile_system(u, field)
  • sqliteboy_x_my(field)
  • sqliteboy_x_my_system(field)

Tidak ada komentar:

Posting Komentar