Aion-Query
view release on metacpan or search on metacpan
i18n/Aion/Query.ru-en.po view on Meta::CPAN
msgid "ÐвоÑиÑÑÐµÑ ÑкалÑÑ Ð´Ð»Ñ SQL-запÑоÑа."
msgstr "Quotes a scalar for an SQL query."
msgid "## query_prepare ($query, %param)"
msgstr "## query_prepare ($query, %param)"
msgid "ÐаменÑÐµÑ Ð¿Ð°ÑамеÑÑÑ (`%param`) в запÑоÑе (`$query`) и возвÑаÑÐ°ÐµÑ ÐµÐ³Ð¾. ÐаÑамеÑÑÑ Ð·Ð°ÐºÐ»ÑÑаÑÑÑÑ Ð² кавÑÑки ÑеÑез подпÑогÑÐ°Ð¼Ð¼Ñ `quote`."
msgstr "Replaces the parameters (`%param`) in a query (`$query`) and returns it. Parameters are enclosed in quotes via the `quote` routine."
msgid "ÐаÑамеÑÑÑ Ð²Ð¸Ð´Ð° `:x` бÑдÑÑ ÐºÐ²Ð¾ÑиÑоваÑÑÑÑ Ñ ÑÑÑÑом Ñлагов ÑкалÑÑа, коÑоÑÑе ÑкажÑÑ, ÑÑо в нÑм наÑ
одиÑÑÑ: ÑÑÑока, Ñелое или ÑиÑло Ñ Ð¿Ð»Ð°Ð²Ð°ÑÑÐ...
msgstr "Parameters of the form `:x` will be quoted taking into account the scalar flags, which indicate whether it contains a string, an integer or a floating point number."
msgid "ЧÑÐ¾Ð±Ñ Ñвно ÑказаÑÑ Ñип ÑкалÑÑа иÑполÑзÑйÑе пÑеÑикÑÑ: `:^x` â Ñелое, `:.x` â ÑÑÑока, `:~x` â плаваÑÑее."
msgstr "To explicitly indicate the type of a scalar, use the prefixes: `:^x` â integer, `:.x` â string, `:~x` â floating."
msgid "## query_do ($query)"
msgstr "## query_do ($query)"
msgid "ÐÑполнÑÐµÑ Ð·Ð°Ð¿ÑÐ¾Ñ Ð¸ возвÑаÑÐ°ÐµÑ ÐµÐ³Ð¾ ÑезÑлÑÑаÑ."
msgstr "Executes a request and returns its result."
lib/Aion/Query.pm view on Meta::CPAN
# use for UPDATE SET :x or INSERT SET :x
quote {name => 'A.S.', id => 12} # => id = 12, name = 'A.S.'
[map quote, -6, "-6", 1.5, "1.5"] # --> [-6, "'-6'", 1.5, "'1.5'"]
=head2 query_prepare ($query, %param)
Replaces the parameters (C<%param>) in a query (C<$query>) and returns it. Parameters are enclosed in quotes via the C<quote> routine.
Parameters of the form C<:x> will be quoted taking into account the scalar flags, which indicate whether it contains a string, an integer or a floating point number.
To explicitly indicate the type of a scalar, use the prefixes: C<:^x> â integer, C<:.x> â string, C<:~x> â floating.
query_prepare "INSERT author SET name IN (:name)", name => ["Alice", 1, 1.0] # => INSERT author SET name IN ('Alice', 1, 1.0)
query_prepare ":x :^x :.x :~x", x => "10" # => '10' 10 10.0 '10'
my $query = query_prepare "SELECT *
FROM author
words*>> JOIN word:_
( run in 1.758 second using v1.01-cache-2.11-cpan-94b05bcf43c )