Preparations for persian documentation publication (#3045)

* Preparations for publication of persian docs.

* Fix for language direction in data_types
This commit is contained in:
BayoNet 2018-09-06 13:22:06 +03:00 committed by Ivan Blinkov
parent 0cb7947835
commit 85334a2836
149 changed files with 457 additions and 144 deletions

1
docs/fa/changelog.md Symbolic link
View File

@ -0,0 +1 @@
../../CHANGELOG_RU.md

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Array(T)

View File

@ -1,7 +1,7 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# مقادیر Boolean
type مخصوص مقادیر boolean وجود ندارد. از Uint8 و محدود شده به 0 و 1 می توان استفاده کرد.
</div>
</div>

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Date

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# DateTime

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Enum
@ -12,7 +12,7 @@ Enum8 یا Enum16، به شما اجازه ی ذخیره سازی مجموعه
Enum8('hello' = 1, 'world' = 2)
```
<div dir="rtl">
<div dir="rtl" markdown="1">
- مقدار داخل این ستون می تواند یکی از دو مقدار 'hello' یا 'world' باشد.

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# FixedString(N)

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Float32, Float64
@ -26,7 +26,7 @@ SELECT 1 - 0.9
└─────────────────────┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
- نتایج محاسبات بسته به متد محاسباتی می باشد (نوع processor و معماری سیستم).
- محاسبات Float ممکن اسن نتایجی مثل infinity (`inf`) و "Not-a-number" (`Nan`) داشته باشد. این در هنگام پردازش نتایج محاسبات باید مورد توجه قرار گیرد.
@ -50,7 +50,7 @@ SELECT 0.5 / 0
└────────────────┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
- `-Inf` Negative infinity.
@ -66,7 +66,7 @@ SELECT -0.5 / 0
└─────────────────┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
- `NaN` Not a number.
@ -82,7 +82,7 @@ SELECT 0 / 0
└──────────────┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
قوانین مربوط به مرتب سازی ` Nan ` را در بخش [ORDER BY clause](../query_language/select.md#query_language-queries-order_by) ببینید.

View File

@ -1,6 +1,6 @@
<a name="data_types"></a>
<div dir="rtl">
<div dir="rtl" markdown="1">
# Data types
@ -8,4 +8,4 @@ ClickHouse قابلیت ذخیره سازی انواع type های مختلف ب
این بخش انواع data type های قابل پشتیبانی در ClickHouse را شرح می دهد، همچنین ملاحطات آنها در هنگام استفاده آنها را شرح می دهد.
</div>
</div>

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# AggregateFunction(name, types_of_arguments...)

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Nested data structures

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Nested(Name1 Type1, Name2 Type2, ...)
@ -31,7 +31,7 @@ CREATE TABLE test.visits
) ENGINE = CollapsingMergeTree(StartDate, intHash32(UserID), (CounterID, StartDate, intHash32(UserID), VisitID), 8192, Sign)
```
<div dir="rtl">
<div dir="rtl" markdown="1">
این مثال `Goals` را به عنوان یک ساختار داده nested تعریف می کند، که می تواند شامل داده های مربوط به conversion (اهداف رسیده) باشد. هر سطر در جدول `visit` می تواند با صفر یا چند coversion ارتباط داشته باشد.
@ -67,7 +67,7 @@ LIMIT 10
└────────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
ساده ترین راه برای فکر کردن به یک ساختار داده nestet این است که، یک nestet مجموعه ای از آرایه های چند ستونی با طول ثابت است.
@ -100,7 +100,7 @@ LIMIT 10
└─────────┴─────────────────────┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
شما نمیتوانید در قسمت SELECT تمام ساختار داده ی nested را قرار دهید. شما فقط می توانید ستون های فردی که هر کدام بخشی از این ساختار داده هستند را لیست کنید.

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Expression

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Special data types

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Set

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# String

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Tuple(T1, T2, ...)

View File

@ -0,0 +1 @@
../../en/development/architecture.md

View File

@ -0,0 +1 @@
../../en/development/build.md

View File

@ -0,0 +1 @@
../../en/development/build_osx.md

View File

@ -0,0 +1 @@
../../en/development/index.md

View File

@ -0,0 +1 @@
../../en/development/style.md

View File

@ -0,0 +1 @@
../../en/development/tests.md

1
docs/fa/faq/general.md Symbolic link
View File

@ -0,0 +1 @@
../../en/faq/general.md

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# بنچمارک AMPLab Big Data
@ -23,7 +23,7 @@ s3cmd sync s3://big-data-benchmark/pavlo/text-deflate/5nodes/ .
cd ..
```
<div dir="rtl">
<div dir="rtl" markdown="1">
این query های ClickHouse را اجرا کنید:
@ -91,7 +91,7 @@ CREATE TABLE uservisits_5nodes_on_single
) ENGINE = MergeTree(visitDate, visitDate, 8192);
```
<div dir="rtl">
<div dir="rtl" markdown="1">
به کنسول برگردید و دستورات زیر را مجددا اجرا کنید:
@ -106,7 +106,7 @@ for i in 5nodes/rankings/*.deflate; do echo $i; zlib-flate -uncompress < $i | cl
for i in 5nodes/uservisits/*.deflate; do echo $i; zlib-flate -uncompress < $i | clickhouse-client --host=example-perftest01j --query="INSERT INTO uservisits_5nodes_on_single FORMAT CSV"; done
```
<div dir="rtl">
<div dir="rtl" markdown="1">
query های گرفتن data sample

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# ترابایت از لاگ های کلیک از سرویس Criteo
@ -12,7 +12,7 @@
CREATE TABLE criteo_log (date Date, clicked UInt8, int1 Int32, int2 Int32, int3 Int32, int4 Int32, int5 Int32, int6 Int32, int7 Int32, int8 Int32, int9 Int32, int10 Int32, int11 Int32, int12 Int32, int13 Int32, cat1 String, cat2 String, cat3 String, cat4 String, cat5 String, cat6 String, cat7 String, cat8 String, cat9 String, cat10 String, cat11 String, cat12 String, cat13 String, cat14 String, cat15 String, cat16 String, cat17 String, cat18 String, cat19 String, cat20 String, cat21 String, cat22 String, cat23 String, cat24 String, cat25 String, cat26 String) ENGINE = Log
```
<div dir="rtl">
<div dir="rtl" markdown="1">
داده ها را دانلود کنید:
@ -22,7 +22,7 @@ CREATE TABLE criteo_log (date Date, clicked UInt8, int1 Int32, int2 Int32, int3
for i in {00..23}; do echo $i; zcat datasets/criteo/day_${i#0}.gz | sed -r 's/^/2000-01-'${i/00/24}'\t/' | clickhouse-client --host=example-perftest01j --query="INSERT INTO criteo_log FORMAT TabSeparated"; done
```
<div dir="rtl">
<div dir="rtl" markdown="1">
یک جدول برای داده های تبدیل شده ایجاد کنید:
@ -75,7 +75,7 @@ CREATE TABLE criteo
) ENGINE = MergeTree(date, intHash32(icat1), (date, intHash32(icat1)), 8192)
```
<div dir="rtl">
<div dir="rtl" markdown="1">
داده ها را از لاگ raw انتقال و به جدول دوم وارد کنید:

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
<a name="example_datasets-ontime"></a>
<div dir="rtl">
<div dir="rtl" markdown="1">
# OnTime
@ -18,7 +18,7 @@ done
done
```
<div dir="rtl">
<div dir="rtl" markdown="1">
(از <https://github.com/Percona-Lab/ontime-airline-performance/blob/master/download.sh> )
@ -140,7 +140,7 @@ CREATE TABLE `ontime` (
) ENGINE = MergeTree(FlightDate, (Year, FlightDate), 8192)
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Load داده ها:
@ -150,7 +150,7 @@ Load داده ها:
for i in *.zip; do echo $i; unzip -cq $i '*.csv' | sed 's/\.00//g' | clickhouse-client --host=example-perftest01j --query="INSERT INTO ontime FORMAT CSVWithNames"; done
```
<div dir="rtl">
<div dir="rtl" markdown="1">
query ها:
Q0.
@ -161,7 +161,7 @@ Q0.
select avg(c1) from (select Year, Month, count(*) as c1 from ontime group by Year, Month);
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q1. تعداد پروازهای به تفکیک روز از تاریخ 2000 تا 2008
@ -171,7 +171,7 @@ Q1. تعداد پروازهای به تفکیک روز از تاریخ 2000 تا
SELECT DayOfWeek, count(*) AS c FROM ontime WHERE Year >= 2000 AND Year <= 2008 GROUP BY DayOfWeek ORDER BY c DESC;
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q2. تعداد پروازهای بیش از 10 دقیقه تاخیر خورده، گروه بندی براساس روزهای هفته از سال 2000 تا 2008
@ -181,7 +181,7 @@ Q2. تعداد پروازهای بیش از 10 دقیقه تاخیر خورده
SELECT DayOfWeek, count(*) AS c FROM ontime WHERE DepDelay>10 AND Year >= 2000 AND Year <= 2008 GROUP BY DayOfWeek ORDER BY c DESC
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q3. تعداد تاخیرها براساس airport از سال 2000 تا 2008
@ -191,7 +191,7 @@ Q3. تعداد تاخیرها براساس airport از سال 2000 تا 2008
SELECT Origin, count(*) AS c FROM ontime WHERE DepDelay>10 AND Year >= 2000 AND Year <= 2008 GROUP BY Origin ORDER BY c DESC LIMIT 10
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q4. تعداد تاخیرها براساس carrier در سال 78
@ -201,7 +201,7 @@ Q4. تعداد تاخیرها براساس carrier در سال 78
SELECT Carrier, count(*) FROM ontime WHERE DepDelay>10 AND Year = 2007 GROUP BY Carrier ORDER BY count(*) DESC
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q5. درصد تاخیر ها براساس carrier در سال 2007
@ -231,7 +231,7 @@ ANY INNER JOIN
ORDER BY c3 DESC;
```
<div dir="rtl">
<div dir="rtl" markdown="1">
نسخه ی بهتر query
@ -241,7 +241,7 @@ ORDER BY c3 DESC;
SELECT Carrier, avg(DepDelay > 10) * 1000 AS c3 FROM ontime WHERE Year = 2007 GROUP BY Carrier ORDER BY Carrier
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q6. مانند query قبلی اما برای طیف وسیعی از سال های 2000 تا 2008
@ -271,7 +271,7 @@ ANY INNER JOIN
ORDER BY c3 DESC;
```
<div dir="rtl">
<div dir="rtl" markdown="1">
نسخه ی بهتر query
@ -281,7 +281,7 @@ ORDER BY c3 DESC;
SELECT Carrier, avg(DepDelay > 10) * 1000 AS c3 FROM ontime WHERE Year >= 2000 AND Year <= 2008 GROUP BY Carrier ORDER BY Carrier
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q7. درصد تاخیر بیش از 10 دقیقه پروازها به تفکیک سال
@ -309,7 +309,7 @@ ANY INNER JOIN
ORDER BY Year
```
<div dir="rtl">
<div dir="rtl" markdown="1">
نسخه ی بهتر query
@ -319,7 +319,7 @@ ORDER BY Year
SELECT Year, avg(DepDelay > 10) FROM ontime GROUP BY Year ORDER BY Year
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q8. مقصدهای پرطرفدار براساس تعداد اتصال های مستقیم شهرها برای سال 2000 تا 2010
@ -329,7 +329,7 @@ Q8. مقصدهای پرطرفدار براساس تعداد اتصال های م
SELECT DestCityName, uniqExact(OriginCityName) AS u FROM ontime WHERE Year >= 2000 and Year <= 2010 GROUP BY DestCityName ORDER BY u DESC LIMIT 10;
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q9.
@ -339,7 +339,7 @@ Q9.
select Year, count(*) as c1 from ontime group by Year;
```
<div dir="rtl">
<div dir="rtl" markdown="1">
Q10.
@ -361,7 +361,7 @@ ORDER by rate DESC
LIMIT 1000;
```
<div dir="rtl">
<div dir="rtl" markdown="1">
query های بیشتر:
@ -379,7 +379,7 @@ SELECT OriginCityName, DestCityName, count() AS c FROM ontime GROUP BY OriginCit
SELECT OriginCityName, count() AS c FROM ontime GROUP BY OriginCityName ORDER BY c DESC LIMIT 10;
```
<div dir="rtl">
<div dir="rtl" markdown="1">
این تست های performance توسط Vadim Tkachenko انجام شده است. برای اطلاعات بیشتر به لینک های زیر مراجعه کنید:

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# بنچمارک Star Schema
@ -12,7 +12,7 @@ cd ssb-dbgen
make
```
<div dir="rtl">
<div dir="rtl" markdown="1">
در هنگام پردازش چند warnings نمایش داده می شود که مشکلی نیست و طبیعی است.
@ -27,7 +27,7 @@ make
./dbgen -s 1000 -T l
```
<div dir="rtl">
<div dir="rtl" markdown="1">
ساخت جداول در ClickHouse
@ -84,7 +84,7 @@ CREATE TABLE customerd AS customer ENGINE = Distributed(perftest_3shards_1replic
CREATE TABLE partd AS part ENGINE = Distributed(perftest_3shards_1replicas, default, part, rand());
```
<div dir="rtl">
<div dir="rtl" markdown="1">
برای تست بر روی یک سرور، فقط از جداول MergeTree استفاده کنید. برای تست توزیع شده، شما نیاز به کانفیگ `perftest_3shards_1replicas` در فایل کانفیگ را دارید. در ادامه جداول MergeTree را در هر سرور ایجاد کنید و موارد بالا را توزیع کنید.

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# WikiStat
@ -22,7 +22,7 @@ CREATE TABLE wikistat
```
<div dir="rtl">
<div dir="rtl" markdown="1">
load دیتا

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# شروع به کار
@ -12,7 +12,7 @@
grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"
```
<div dir="rtl">
<div dir="rtl" markdown="1">
پیشنهاد می کنیم از Ubuntu TrustyT، Ubuntu Xenial یا Ubuntu Precise استفاده کنید. ترمینال باید از UTF-8 پشتیبانی کند. (به صورت پیش فرض در Ubuntu پشتیبانی می شود).
@ -30,7 +30,7 @@ grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not su
deb http://repo.yandex.ru/clickhouse/deb/stable/ main/
```
<div dir="rtl">
<div dir="rtl" markdown="1">
اگر شما میخوایید جدیدترین نسخه ی تست را استفاده کنید، 'stable' رو به 'testing' تغییر بدید.
@ -44,7 +44,7 @@ sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server
```
<div dir="rtl">
<div dir="rtl" markdown="1">
شما همچنین می توانید از طریق لینک زیر پکیج ClickHouse را به صورت دستی دانلود و نصب کنید: <https://repo.yandex.ru/clickhouse/deb/stable/main/>.
@ -63,7 +63,7 @@ Client: dbms/programs/clickhouse-client
Server: dbms/programs/clickhouse-server
```
<div dir="rtl">
<div dir="rtl" markdown="1">
برای سرور، یک کاتالوگ با دیتا بسازید، مانند
@ -74,7 +74,7 @@ Server: dbms/programs/clickhouse-server
/opt/clickhouse/metadata/default/
```
<div dir="rtl">
<div dir="rtl" markdown="1">
(قابل تنظیم در تنظیمات سرور). 'chown' را برای کاربر دلخواه اجرا کنید.
@ -98,7 +98,7 @@ Gentoo: `emerge clickhouse`
sudo service clickhouse-server start
```
<div dir="rtl">
<div dir="rtl" markdown="1">
لاگ های دایرکتوری `/var/log/clickhouse-server/ directory.` را مشاهده کنید.
@ -112,7 +112,7 @@ sudo service clickhouse-server start
clickhouse-server --config-file=/etc/clickhouse-server/config.xml
```
<div dir="rtl">
<div dir="rtl" markdown="1">
در این مورد که مناسب زمان توسعه می باشد، لاگ ها در کنسول پرینت می شوند. اگر فایل تنظیمات در دایرکتوری جاری باشد، نیازی به مشخص کردن '--config-file' نمی باشد. به صورت پیش فرض از './config.xml' استفاده می شود.
@ -124,7 +124,7 @@ clickhouse-server --config-file=/etc/clickhouse-server/config.xml
clickhouse-client
```
<div dir="rtl">
<div dir="rtl" markdown="1">
پارامترهای پیش فرض، نشان از اتصال به localhost:9000 از طرف کاربر 'default' بدون پسورد را می دهد. از کلاینت میتوان برای اتصال به یک سرور remote استفاده کرد. مثال:
@ -134,7 +134,7 @@ clickhouse-client
clickhouse-client --host=example.com
```
<div dir="rtl">
<div dir="rtl" markdown="1">
برای اطلاعات بیشتر، بخش "کلاینت Command-line" را مشاهده کنید.
@ -161,7 +161,7 @@ SELECT 1
:)
```
<div dir="rtl">
<div dir="rtl" markdown="1">
**تبریک میگم، سیستم کار می کنه!**

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

12
docs/fa/images/logo.svg Normal file
View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="54" height="48" viewBox="0 0 9 8">
<style>
.o{fill:#fc0}
.r{fill:#f00}
</style>
<path class="r" d="M0,7 h1 v1 h-1 z"/>
<path class="o" d="M0,0 h1 v7 h-1 z"/>
<path class="o" d="M2,0 h1 v8 h-1 z"/>
<path class="o" d="M4,0 h1 v8 h-1 z"/>
<path class="o" d="M6,0 h1 v8 h-1 z"/>
<path class="o" d="M8,3.25 h1 v1.5 h-1 z"/>
</svg>

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# ClickHouse چیست؟

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# کلاینت Command-line
@ -15,7 +15,7 @@ Connected to ClickHouse server version 0.0.26176.
:)
```
<div dir="rtl">
<div dir="rtl" markdown="1">
کلاینت از آپشن های command-line و فایل های کانفیگ پشتیبانی می کند. برای اطلاعات بیشتر بخش "[پیکربندی](#interfaces_cli_configuration)" را مشاهده کنید.
@ -37,7 +37,7 @@ _EOF
cat file.csv | clickhouse-client --database=test --query="INSERT INTO test FORMAT CSV";
```
<div dir="rtl">
<div dir="rtl" markdown="1">
در حالت Batch، فرمت داده ها به صورت پیش فرض به صورت TabSeparated می باشد. شما میتوانید فرمت داده ها رو در هنگام اجرای query و با استفاده از شرط FORMAT مشخص کنید.

View File

@ -1,6 +1,6 @@
<a name="formats"></a>
<div dir="rtl">
<div dir="rtl" markdown="1">
# فرمت های Input و Output
@ -49,7 +49,7 @@ SELECT SearchPhrase, count() AS c FROM test.hits
GROUP BY SearchPhrase FORMAT CapnProto SETTINGS schema = 'schema:Message'
```
<div dir="rtl">
<div dir="rtl" markdown="1">
جایی که `schema.capnp` شبیه این است:
@ -62,7 +62,7 @@ struct Message {
}
```
<div dir="rtl">
<div dir="rtl" markdown="1">
فایل های Schema در فایلی قرار دارند که این فایل در دایرکتوری مشخص شده کانفیگ [ format_schema_path](../operations/server_settings/settings.md#server_settings-format_schema_path) قرار گرفته اند.
@ -80,7 +80,7 @@ Comma Separated Values format ([RFC](https://tools.ietf.org/html/rfc4180)).
clickhouse-client --format_csv_delimiter="|" --query="INSERT INTO test.csv FORMAT CSV" < data.csv
```
<div dir="rtl">
<div dir="rtl" markdown="1">
&ast;به صورت پیش فرض — `,`. برای اطلاعات بیشتر [format_csv_delimiter](/operations/settings/settings/#format_csv_delimiter) را ببینید.
@ -166,7 +166,7 @@ SELECT SearchPhrase, count() AS c FROM test.hits GROUP BY SearchPhrase WITH TOTA
}
```
<div dir="rtl">
<div dir="rtl" markdown="1">
JSON با جاوااسکریپت سازگار است. برای اطمینان از این، بعضی از کاراکتر ها ecape های اضافه دارند: اسلش `/` به صورت `\/` escape می شود؛ line break جایگزین یعنی `U+2028` و `U+2029` که باعث break در بعضی از مروگرها می شود، به شکل `\uXXXX` escape می شوند. کاراکتر های کنترلی ASCII هم escape می شوند: backspace، form feed، line feed، carriage return، و horizontal tab به ترتیب با `\b`، `\f`، `\n`، `\r`، `\t` جایگزین می شوند. همچنین بایت های باقی مانده در محدوده 00 تا 1F با استفاده از `\uXXXX` جایگزین می شوند. کاراکتر های بی اعتبار UTF-8 با <20> جایگزین می شوند، پس خروجی JSON شامل موارد معتبر UTF-8 می باشد. برای سازگاری با جاوااسکریپت، اعداد Int64 و Uint64 به صورت پیش فرض، با استفاده از دابل کوتیشن enclose می شوند. برای حذف کوتیشن، شما باید پارامتر output_format_json_quote_64bit_integers v رو برابر با 0 قرار دهید.
@ -225,7 +225,7 @@ JSON با جاوااسکریپت سازگار است. برای اطمینان ا
}
```
<div dir="rtl">
<div dir="rtl" markdown="1">
این فرمت فقط مناسب خروجی query های می باشد، به این معنی که برای عملیات پارس کردن (دریافت داده برای insert در جدول) نیست. همچنین فرمت JSONEachRow را ببینید.
@ -248,7 +248,7 @@ JSON با جاوااسکریپت سازگار است. برای اطمینان ا
{"SearchPhrase":"baku","count()":"1000"}
```
<div dir="rtl">
<div dir="rtl" markdown="1">
بر خلاف فرمت JSON، هیچ جایگزینی برای کاراکتر های بی اعتبار UTF-8 وجود ندارد. هر مجموعه ای از بایت های می تواند داخل سطر در خروجی باشند. پس داده ها بدون از دست دادن هیچ اطلاعاتی فرمت می شوند. مقادیر شبیه به JSON، escape می شوند.
@ -299,7 +299,7 @@ Extremes:
└────────────┴─────────┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
## PrettyCompact
@ -321,7 +321,7 @@ Extremes:
watch -n1 "clickhouse-client --query='SELECT * FROM system.events FORMAT PrettyCompactNoEscapes'"
```
<div dir="rtl">
<div dir="rtl" markdown="1">
شما می توانید برای نمایش در مرورگر از interface HTTP استفاده کنید.
@ -370,7 +370,7 @@ Hello\
world
```
<div dir="rtl">
<div dir="rtl" markdown="1">
نوع دوم به دلیل پشتیبانی MySQL در هنگام نوشتن دامپ به صورت tab-separate، پشتیبانی می شود.
@ -405,7 +405,7 @@ SELECT EventDate, count() AS c FROM test.hits GROUP BY EventDate WITH TOTALS ORD
2014-03-23 1406958
```
<div dir="rtl">
<div dir="rtl" markdown="1">
این فرمت نیز تحت نام `TSV` موجود است.
@ -448,7 +448,7 @@ SearchPhrase=curtain design count()=1064
SearchPhrase=baku count()=1000
```
<div dir="rtl">
<div dir="rtl" markdown="1">
وقتی تعداد زیادی از ستون ها وجود دارد، این فرمت بی فایده است، و در حالت کلی دلیلی بر استفاده از این فرمت در این مواقع وجود ندارد. این فرمت در بعضی از دپارتمان های Yandex استفاده می شد.
@ -489,7 +489,7 @@ test: string with 'quotes' and with some special
characters
```
<div dir="rtl">
<div dir="rtl" markdown="1">
در مقایسه با فرمت Vertical:
@ -503,7 +503,7 @@ test: string with \'quotes\' and \t with some special \n characters
```
## XML
<div dir="rtl">
<div dir="rtl" markdown="1">
فرمت XML فقط برای خروجی مناسب است، نه برای پارس کردن. مثال:
@ -571,7 +571,7 @@ test: string with \'quotes\' and \t with some special \n characters
</result>
```
<div dir="rtl">
<div dir="rtl" markdown="1">
اگر نام فیلد، فرمت قابل قبولی نداشته باشد، اسم 'field' به عنوان نام عنصر استفاده می شود. به طور کلی، ساختار XML مشابه ساختار JSON می باشد. فقط در JSON، موارد بی اعتبار UTF-8 تبدیل به کاراکتر <20> می شوند که منجر به خروجی معتبر UTF-8 می شود.

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# HTTP interface
@ -13,7 +13,7 @@ $ curl 'http://localhost:8123/'
Ok.
```
<div dir="rtl">
<div dir="rtl" markdown="1">
درخواست های خود را پارامتر 'query'، یا با متد POST، یا ابتدای query را در پارامتر 'query' ارسال کنید، و بقیه را در POST (بعدا توضیح خواهیم داد که چرا این کار ضروری است). سایت URL محدود به 16 کیلوبایت است، پس هنگام ارسال query های بزرگ، اینو به خاطر داشته باشید
@ -40,7 +40,7 @@ Date: Fri, 16 Nov 2012 19:21:50 GMT
1
```
<div dir="rtl">
<div dir="rtl" markdown="1">
همانطور که می بینید، curl is somewhat inconvenient in that spaces must be URL escaped. هر چند wget همه چیز را خودش escape می کنه، ما توصیه به استفاده از اون رو نمی کنیم، چون wget به خوبی با HTTP 1.1 در هنگام استفاده از هدر های keep-alive و Transfer-Encoding: chunked کار نمی کند.
@ -57,7 +57,7 @@ $ echo '1' | curl 'http://localhost:8123/?query=SELECT' --data-binary @-
1
```
<div dir="rtl">
<div dir="rtl" markdown="1">
اگر بخشی از query در پارامتر ارسال شود، و بخش دیگر در POST، یک line feed بین دو بخش وارد می شود. مثال (این کار نمی کند):
@ -70,7 +70,7 @@ ECT 1
, expected One of: SHOW TABLES, SHOW DATABASES, SELECT, INSERT, CREATE, ATTACH, RENAME, DROP, DETACH, USE, SET, OPTIMIZE., e.what() = DB::Exception
```
<div dir="rtl">
<div dir="rtl" markdown="1">
به صورت پیش فرض، داده ها با فرمت TabSeparated بر میگردند. (برای اطلاعات بیشتر بخش "فرمت" را مشاهده کنید). شما میتوانید از دستور FORMAT در query خود برای ست کردن فرمتی دیگر استفاده کنید.
@ -85,7 +85,7 @@ $ echo 'SELECT 1 FORMAT Pretty' | curl 'http://localhost:8123/?' --data-binary @
└───┘
```
<div dir="rtl">
<div dir="rtl" markdown="1">
برای query های INSERT متد POST ضروری است. در این مورد، شما می توانید ابتدای query خود را در URL parameter بنویسید، و از POST برای پاس داده داده ها برای درج استفاده کنید. داده ی برای درج می تواند، برای مثال یک دامپ tab-separated شده از MySQL باشد. به این ترتیب، query INSERT جایگزین LOAD DATA LOCAL INFILE از MySQL می شود.
@ -97,7 +97,7 @@ $ echo 'SELECT 1 FORMAT Pretty' | curl 'http://localhost:8123/?' --data-binary @
echo 'CREATE TABLE t (a UInt8) ENGINE = Memory' | curl 'http://localhost:8123/' --data-binary @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
استفاده از query INSERT برای درج داده:
@ -107,7 +107,7 @@ echo 'CREATE TABLE t (a UInt8) ENGINE = Memory' | curl 'http://localhost:8123/'
echo 'INSERT INTO t VALUES (1),(2),(3)' | curl 'http://localhost:8123/' --data-binary @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
داده ها میتوانند جدا از پارامتر query ارسال شوند:
@ -117,7 +117,7 @@ echo 'INSERT INTO t VALUES (1),(2),(3)' | curl 'http://localhost:8123/' --data-b
echo '(4),(5),(6)' | curl 'http://localhost:8123/?query=INSERT%20INTO%20t%20VALUES' --data-binary @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
شما می توانید هر نوع فرمت دیتایی مشخص کنید. فرمت 'Values' دقیقا مشابه زمانی است که شما INSERT INTO t VALUES را می نویسید:
@ -127,7 +127,7 @@ echo '(4),(5),(6)' | curl 'http://localhost:8123/?query=INSERT%20INTO%20t%20VALU
echo '(7),(8),(9)' | curl 'http://localhost:8123/?query=INSERT%20INTO%20t%20FORMAT%20Values' --data-binary @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
برای درج داده ها از یک دامپ tab-separate، فرمت مشخص زیر را وارد کنید:
@ -137,7 +137,7 @@ echo '(7),(8),(9)' | curl 'http://localhost:8123/?query=INSERT%20INTO%20t%20FORM
echo -ne '10\n11\n12\n' | curl 'http://localhost:8123/?query=INSERT%20INTO%20t%20FORMAT%20TabSeparated' --data-binary @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
به دلیل پردازش موازی، نتایج query با ترتیب رندوم چاپ می شود:
@ -159,7 +159,7 @@ $ curl 'http://localhost:8123/?query=SELECT%20a%20FROM%20t'
6
```
<div dir="rtl">
<div dir="rtl" markdown="1">
حدف جدول:
@ -169,7 +169,7 @@ $ curl 'http://localhost:8123/?query=SELECT%20a%20FROM%20t'
echo 'DROP TABLE t' | curl 'http://localhost:8123/' --data-binary @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
برای درخواست هایی موفقی که داده ای از جدول بر نمیگردد، بدنه response خالی است.
@ -199,7 +199,7 @@ $ echo 'SELECT number FROM numbers LIMIT 10' | curl 'http://localhost:8123/?data
9
```
<div dir="rtl">
<div dir="rtl" markdown="1">
به صورت پیش فرض، دیتابیس ثبت شده در تنظیمات سرور به عنوان دیتابیس پیش فرض مورد استفاده قرار می گیرد، این دیتابیس 'default' نامیده می شود. از سوی دیگر، شما می توانید همیشه نام دیتابیس را با دات و قبل از اسم جدول مشخص کنید.
@ -213,7 +213,7 @@ $ echo 'SELECT number FROM numbers LIMIT 10' | curl 'http://localhost:8123/?data
echo 'SELECT 1' | curl 'http://user:password@localhost:8123/' -d @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
2. با دو پارامتر 'user' و 'password' در URL. مثال:
@ -223,7 +223,7 @@ echo 'SELECT 1' | curl 'http://user:password@localhost:8123/' -d @-
echo 'SELECT 1' | curl 'http://localhost:8123/?user=user&password=password' -d @-
```
<div dir="rtl">
<div dir="rtl" markdown="1">
اگر نام کاربری مشخص نشود، نام کاربری 'default' استفاده می شود. اگر پسورد مشخص نشود، پسورد خالی استفاده می شود. شما همچنین می توانید از پارامتر های URL برای مشخص کردن هر تنظیمی برای اجرای یک query استفاده کنید. مثال: http://localhost:8123/?profile=web&max_rows_to_read=1000000000&query=SELECT+1
@ -245,7 +245,7 @@ $ echo 'SELECT number FROM system.numbers LIMIT 10' | curl 'http://localhost:812
9
```
<div dir="rtl">
<div dir="rtl" markdown="1">
برای اطلاعات بیشتر در مورد دیگر پارامترها، بخش "SET" را ببینید.
@ -275,8 +275,8 @@ HTTP interface اجازه ی پاس دادن داده های external (جداو
curl -sS 'http://localhost:8123/?max_result_bytes=4000000&buffer_size=3000000&wait_end_of_query=1' -d 'SELECT toUInt8(number) FROM system.numbers LIMIT 9000000 FORMAT RowBinary'
```
<div dir="rtl">
<div dir="rtl" markdown="1">
از بافرینگ به منظور اجتناب از شرایطی که یک خطای پردازش query رخ داده بعد از response کد و هدر های ارسال شده به کلاینت استفاده کنید. در این شرایط، پیغام خطا در انتهای بنده response نوشته می شود، و در سمت کلاینت، پیغام خطا فقط از طریق مرحله پارس کردن قابل شناسایی است.
</div>
</div>

View File

@ -1,6 +1,6 @@
<a name="interfaces"></a>
<div dir="rtl">
<div dir="rtl" markdown="1">
# Interface ها

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# درایور JDBC

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Native interface (TCP)

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# کتابخانه های توسعه دهندگان third-party

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# interface های visual توسعه دهندگان third-party

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# ویژگی های برجسته ClickHouse

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# ویژگی های از ClickHouse که می تواند معایبی باشد.

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Performance

View File

@ -1,4 +1,4 @@
<div dir="rtl">
<div dir="rtl" markdown="1">
# Yandex.Metrica use case

View File

@ -0,0 +1 @@
../../en/operations/access_rights.md

View File

@ -0,0 +1 @@
../../en/operations/configuration_files.md

1
docs/fa/operations/index.md Symbolic link
View File

@ -0,0 +1 @@
../../en/operations/settings/index.md

View File

@ -0,0 +1 @@
../../en/operations/quotas.md

View File

@ -0,0 +1 @@
../../../en/operations/server_settings/index.md

View File

@ -0,0 +1 @@
../../../en/operations/server_settings/settings.md

View File

@ -0,0 +1 @@
../../../en/operations/settings/index.md

View File

@ -0,0 +1 @@
../../../en/operations/settings/query_complexity.md

View File

@ -0,0 +1 @@
../../../en/operations/settings/settings.md

View File

@ -0,0 +1 @@
../../../en/operations/settings/settings_profiles.md

View File

@ -0,0 +1 @@
../../en/operations/system_tables.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/aggregatingmergetree.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/buffer.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/collapsingmergetree.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/custom_partitioning_key.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/dictionary.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/distributed.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/external_data.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/file.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/graphitemergetree.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/index.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/join.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/kafka.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/log.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/materializedview.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/memory.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/merge.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/mergetree.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/mysql.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/null.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/replacingmergetree.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/replication.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/set.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/summingmergetree.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/tinylog.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/url.md

View File

@ -0,0 +1 @@
../../../en/operations/table_engines/view.md

1
docs/fa/operations/tips.md Symbolic link
View File

@ -0,0 +1 @@
../../en/operations/tips.md

View File

@ -0,0 +1 @@
../../../en/operations/utils/clickhouse-copier.md

View File

@ -0,0 +1 @@
../../../en/operations/utils/clickhouse-local.md

View File

@ -0,0 +1 @@
../../../en/operations/utils/index.md

View File

@ -0,0 +1 @@
../../../en/query_language/agg_functions/combinators.md

View File

@ -0,0 +1 @@
../../../en/query_language/agg_functions/index.md

View File

@ -0,0 +1 @@
../../../en/query_language/agg_functions/parametric_functions.md

View File

@ -0,0 +1 @@
../../../en/query_language/agg_functions/reference.md

View File

@ -0,0 +1 @@
../../en/query_language/alter.md

View File

@ -0,0 +1 @@
../../en/query_language/create.md

View File

@ -0,0 +1 @@
../../../en/query_language/dicts/external_dicts.md

View File

@ -0,0 +1 @@
../../../en/query_language/dicts/external_dicts_dict.md

View File

@ -0,0 +1 @@
../../../en/query_language/dicts/external_dicts_dict_layout.md

View File

@ -0,0 +1 @@
../../../en/query_language/dicts/external_dicts_dict_lifetime.md

View File

@ -0,0 +1 @@
../../../en/query_language/dicts/external_dicts_dict_sources.md

Some files were not shown because too many files have changed in this diff Show More