> sqlite:register(test_db, [{db_name, "test.db"}, {db_flag, [readwrite, create]}]).
> {db_handle, Handle} = sqlite:open(test_db).
> sqlite:insert(Handle, test, [
{field_int, rand:uniform(6000)},
{field_float, rand:uniform(6000) + rand:uniform(99) * 0.01},
{field_text, age_unicode:string_to_utf8("Текст на кирилица")},
{field_varchar, age_unicode:string_to_utf8("Текст")},
{field_date, age_tools:now_to_iso8601()},
{field_time, age_tools:now_to_iso8601()},
{field_datetime, age_tools:now_to_iso8601()},
{field_data, crypto:strong_rand_bytes(1000000)}
]).
|