PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

chdb_create - Creates a chdb file | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

chdb_create

(PECL chdb >= 0.1.0)

chdb_createCreates a chdb file

説明

bool chdb_create ( string $pathname , array $data )

chdb_create() creates a chdb file containing the specified key-value pairs.

注意:

chdb files are not portable across little-endian and big-endian environments. Except for that, they are portable across different architectures. Also compatibility across different versions of chdb is not guaranteed.

パラメータ

pathname

The name of the file to create.

If a file with the same name already exists, it is overwritten.

data

An array containing the key-value pairs to store in the chdb file.

Keys and values are converted to strings before being written to the file, as chdb only support the string type. Note that binary strings are supported as well, both as keys and values.

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

エラー / 例外

Throws an exception in case the chdb file hasn't been successfully created.

例1 chdb_create() example

<?php

$data 
= array(
    
'key1' => 'value1',
    
'key2' => 'value2',
    
// ...
);
chdb_create('data.chdb'$data);

?>

The above example will generate a chdb file named data.chdb and containing the key-value pairs defined in $data.



フォーラムで「chdb_create - Creates a chdb file」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | chdb_create - Creates a chdb file」をGoogle検索
copyright © 1997-2012 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: