diff --git a/reference/chdb/chdb/construct.xml b/reference/chdb/chdb/construct.xml index 3219d8b92f..be9e1446f5 100644 --- a/reference/chdb/chdb/construct.xml +++ b/reference/chdb/chdb/construct.xml @@ -1,10 +1,11 @@ + chdb::__construct - Creates a chdb instance + chdb のインスタンスを生成します。 @@ -14,15 +15,10 @@ stringpathname - Loads a chdb file, by mapping it into memory. + メモリにマップすることで読み込む chdb のファイル。 - While some validity checks are performed on the specified file, they are - mostly there to avoid the possibility of common mistakes (for example, - loading a file which is not a chdb database, or that is somehow - incompatible with the current system). A maliciously crafted chdb file can - thus be dangerous if loaded, so chdb files should be trusted and treated - with the same security protections used for PHP shared libraries. + 指定されたファイルに対して中身が正しいかがチェックされます。これはありがちな間違い(たとえば、chdb でないファイルを読み込んだり、どういうわけか今動いている chdb と互換性がなかったりする場合)を起こす可能性を避けるためのものです。悪意があるユーザーが細工した chdb ファイルを読み込むと危険な場合があるため、chdb ファイルは PHP の共有ライブラリに対して用いられるセキュリティ設定と同程度にしか信頼してはいけませんし、そのように扱うべきです。 @@ -35,7 +31,7 @@ pathname - The name of the file to load. + 読み込むファイル名 @@ -45,15 +41,11 @@ &reftitle.errors; - Throws an exception in case the chdb file hasn't been successfully loaded. + chdb ファイルの読み込みに失敗した場合は例外がスローされます。 - A valid chdb file might fail to load in case it was created on an - architecture with a different endianness, with a different version of chdb, - or if the file is too big to be mapped into memory (mostly in case of huge - files and 32-bit architectures). In these cases the load will fail by - throwing an exception, but otherwise not performing any illegal operation. + 正しい chdb ファイルであっても、異なったエンディアンを採用するアーキテクチャ上で作成したり、異なるバージョンの chdb で作成したものは読み込みに失敗する場合があります。また、chdb ファイルが巨大すぎてメモリにマップできない場合(ほとんどの場合は、32bit アーキテクチャと巨大なファイルの組み合わせです)も同様です。これらの場合は、例外をスローして読み込みが失敗するでしょう。それ以外の場合でも、不正な操作を行った場合は例外がスローされます。 diff --git a/reference/chdb/chdb/get.xml b/reference/chdb/chdb/get.xml index 3fbf4d1b95..be80228592 100644 --- a/reference/chdb/chdb/get.xml +++ b/reference/chdb/chdb/get.xml @@ -1,10 +1,11 @@ + chdb::get - Gets the value associated with a key + キーに対応した値を取得する @@ -14,7 +15,7 @@ stringkey - Gets the value associated with a key from a chdb database. + chdb データベースから、キーに対応した値を取得します。 @@ -25,7 +26,7 @@ key - The key for which to get the value. + 値を取得するためのキー @@ -35,15 +36,14 @@ &reftitle.returnvalues; - Returns a string containing the value associated with the given - key, or &null; if not found. + 与えられた key に対応した値を含む文字列を返します。対応する値が見つからなかった場合は &null; を返します。 &reftitle.examples; - <function>chdb::get</function> example + <function>chdb::get</function> の例