Difference between revisions of "Lazarus DB Faq/ja"

From Lazarus wiki
Jump to navigationJump to search
m
Line 1: Line 1:
{{Lazarus DB Faq}}
 
 
{{Japanese Menu}}
 
 
== General ==
 
 
このFAQはLazarusでのデータベースプログラミングに関するものです。
 
 
=== どうしたら、もっと他のFAQを見つけられますか? ===
 
 
オフィシャルWebサイトwww.lazarus.freepascal.org.を見てください。([[Lazarus Faq|こちら]])
 
 
=== どうしたら、データベースコンポーネントを見つけられますか? ===
 
 
現在、SQLdbコンポーネントはLazarusのパッケージになっていますので、インストールさえすればよいです。
 
[$LazarusDir]/componentsフォルダをみると、SQLdbのサブディレクトリがあるでしょう。sqldblaz.lpkをインストールすると、MySQL,Interbase/Firebird, PostgresのDBサーバへ接続することができます。
 
 
[[Install Packages|ここ]]にパッケージインストールのヘルプがあります。
 
 
 
=== 上記のほかのコンポーネントはありますか? ===
 
=== 上記のほかのコンポーネントはありますか? ===
  
Line 51: Line 32:
 
https://trac.synsport.com:8000/index.php/pdo/wiki (username/password is guest/guest)
 
https://trac.synsport.com:8000/index.php/pdo/wiki (username/password is guest/guest)
  
== PostgreSQL ==
 
  
PostgreSQLデータベースサーバへ接続するには、TPQConnectionコンポーネントを使います。
+
{{Lazarus DB Faq}}
このコンポーネントはPostgreSQLのlibpqコネクションライブラリを利用しています。
+
 
[http://www.postgresql.org/docs/8.0/interactive/libpq.html],
+
{{Japanese Menu}}
ですから、簡単にほとんどの(訳注:バージョンの?)PostgreSQLデータベースに接続できます。
+
 
しかし、このコンポーネントは、下記の接続オプションはサポートしていません。
+
{{Infobox databases/ja}}
 +
 
 +
これは Lazarus でのデータベースプログラミングに関する FAQ(Frequently Asked Questions) です。
 +
 
 +
=== どこでより多くの情報を見つけられますか? ===
 +
データベースを参照してください。:
 +
* [[Databases/ja]] や databases/SQLQuery の利用についての記事を参照してください。
 +
 
 +
=== どこで、データベースのコンポーネントを見つけられますか? ===
 +
At the moment the SQLdb components are part of FPC and Lazarus. They are installed by default in all more or less recent Lazarus versions.
 +
 
 +
現在、SQLdbコンポーネントはLazarusのパッケージになっていますので、インストールさえすればよいです。
 +
[$LazarusDir]/componentsフォルダをみると、SQLdbのサブディレクトリがあるでしょう。sqldblaz.lpkをインストールすると、MySQL,Interbase/Firebird, PostgresのDBサーバへ接続することができます。
 +
 
 +
[[Install Packages|ここ]]にパッケージインストールのヘルプがあります。
 +
 
 +
 
 +
Manual installation: if you look in the [$LazarusDir]/components you will see a subdirectory SQLdb. Install the sqldblaz.lpk and you will be able to connect to MySQL, Interbase / Firebird, Postgres, MS SQL and Sybase ASE (if you have FPC 2.6.1+), Oracle servers.
 +
See [[Install Packages/ja]] for help on installing packages.
 +
 
 +
=== Supported databases ===
 +
* See [[Lazarus Database Overview/ja]] for a list of what databases are supported by SQLDB.
 +
 
 +
=== Known issues ===
 +
* See [[fcl-db#Known%20issues/shortcomings/ja]]
 +
 
 +
=== Are there other components? ===
 +
* See [[Lazarus Database Overview/ja]] for a list of what databases work with what components.
 +
 
 +
=== Lazarus and FPC documentation ===
 +
The Lazarus visual database controls use FPC database code. Please see [http://www.freepascal.org/docs-html/fcl/sqldb/index.html SQLDB documentation] for more information.
 +
 
 +
Background info on SQLDB: [[SqlDBHowto/ja]]
  
* Port
+
More info on TSQLQuery: [[Working With TSQLQuery/ja]]
* ClientEncoding
 
  
このほかにも、接続していないパラメータがある可能性があります。
+
=== Lazarus documentation ===
 +
* Some information on the interaction between the various FPC and Lazarus components: [[SQLdb Programming Reference/ja]]
  
--[[User:Jrmarino|Jrmarino]] 11:28, 13 Mar 2006 (CET)
+
[[Category:Databases/ja]]
 +
[[Category:FPC/ja]]
 +
[[Category:Lazarus/ja]]
 +
[[Category:FAQs/ja]]

Revision as of 17:22, 9 June 2017

上記のほかのコンポーネントはありますか?

はい。ZEOS componentsが、すでにLazarusへポーティングされています。
ZEOSDBO_Rework を、 ZEOS cvsから、ダウンロードする必要があります。
このチュートリアルは、Zeosを見てください。
Pascal Data Objectsも、同様にDelphiとFPC2.0で動作します。

IB / FB (Interbase,Firebirdについて)

Linuxから、Windowsへのサーバーへはどうやって接続するのでしょうか。

LinuxクライアントからWindowsサーバーのデータベースへの正しいパスをきちんと書く方法は、あまり一般的ではありません。

あなたがFirebirdをF:\Program Files\firebird\にインストールしたとします。 この場合、サンプルのデータベースであるemployee.fdbが、F:\Program Files\firebird\examples\ にインストールされています。また、サーバーのIPアドレスが 192.168.2.100であったと仮定しましょう。

そうすると、IBConnectionでは、次のようにデータベース名を記述すると、きちんと接続するでしょう。

192.168.2.100:F:\Program Files\firebird\examples\employee.fdb

注意:hostnameプロパティには、値を設定する必要はありません。

MySQL

SQLdbでは、MySQLのどのバージョンがサポートされていますか?

現在、SQLdbコンポーネントでは、MySQL4.0 、MySQL4.1、そしてMySQL5.0をサポートしています。 クライアントライブラリバージョンに対して、正しい接続コンポーネントを使おうとしているか、確認してください。 もし、MySQL4.1をインストールしてクライアントライブラリを利用しているならば、TMySQL41Connectionコンポーネントを使ってください。(サーバーが4.0や5.0であっても、クライアントライブラリのバージョンに対応したコンポーネントを利用します。)

Pascal Data Objectsの場合

現在は排他的な状況です。MySQL4.1と5.0で導入された機能(プリペアード文、バインディング、ストアドプロシジャ)は、Pascal Data Objectのdatabase APIでサポートされています。Pascal Data Objectsは、PHP Data Objectsからヒントを得ています。 この新しいAPIを使うための、すべてのコードと文書は、Trac wikiから利用ができます。

https://trac.synsport.com:8000/index.php/pdo/wiki (username/password is guest/guest)


Deutsch (de) English (en) español (es) français (fr) italiano (it) 日本語 (ja) português (pt) русский (ru) slovenčina (sk) 中文(中国大陆)‎ (zh_CN)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報
データベースのポータル

参照:

チュートリアル/練習となる記事:

各種データベース

Advantage - MySQL - MSSQL - Postgres - Interbase - Firebird - Oracle - ODBC - Paradox - SQLite - dBASE - MS Access - Zeos

これは Lazarus でのデータベースプログラミングに関する FAQ(Frequently Asked Questions) です。

どこでより多くの情報を見つけられますか?

データベースを参照してください。:

  • Databases/ja や databases/SQLQuery の利用についての記事を参照してください。

どこで、データベースのコンポーネントを見つけられますか?

At the moment the SQLdb components are part of FPC and Lazarus. They are installed by default in all more or less recent Lazarus versions.

現在、SQLdbコンポーネントはLazarusのパッケージになっていますので、インストールさえすればよいです。 [$LazarusDir]/componentsフォルダをみると、SQLdbのサブディレクトリがあるでしょう。sqldblaz.lpkをインストールすると、MySQL,Interbase/Firebird, PostgresのDBサーバへ接続することができます。

ここにパッケージインストールのヘルプがあります。


Manual installation: if you look in the [$LazarusDir]/components you will see a subdirectory SQLdb. Install the sqldblaz.lpk and you will be able to connect to MySQL, Interbase / Firebird, Postgres, MS SQL and Sybase ASE (if you have FPC 2.6.1+), Oracle servers. See Install Packages/ja for help on installing packages.

Supported databases

Known issues

Are there other components?

Lazarus and FPC documentation

The Lazarus visual database controls use FPC database code. Please see SQLDB documentation for more information.

Background info on SQLDB: SqlDBHowto/ja

More info on TSQLQuery: Working With TSQLQuery/ja

Lazarus documentation