Sign in Join
Wiki copytemporary

Lazarus Database Overview/ja: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1+---
2+[[Portal:Databases/ja|**データベースのポータル**]]
3+参照: · [[Databases/ja|Databases 概要]] · [[Database libraries/ja|ライブラリ]] · [[Database field type/ja|フィールドの型]] · [[Data Controls tab/ja|コントロール]] · [[Lazarus DB Faq/ja|FAQ]] · [[SqlDBHowto/ja]] · [[Working With TSQLQuery/ja|TSQLQuery の利用]] · [[How to write in-memory database applications in Lazarus/FPC/ja|メモリ上で動作するデータベースの作り方]] · チュートリアル/練習となる記事: · 概要 · [[SQLdb Tutorial0/ja|0 - データベースのセットアップ]] · [[SQLdb Tutorial1/ja|1 - 開始]] · [[SQLdb Tutorial2/ja|2 - 編集]] · [[SQLdb Tutorial3/ja|3 - クエリ]] · [[SQLdb Tutorial4/ja|4 - データモジュール]] · [[SQLdb Programming Reference/ja]] · 各種データベース · [[Advantage Database Server/ja|Advantage]] \- [[MySQLDatabases/ja|MySQL]] \- [[mssqlconn/ja|MSSQL]] \- [[postgres/ja|Postgres]] \- [[Firebird/ja|Interbase]] \- [[Firebird/ja|Firebird]] \- [[Oracle/ja|Oracle]] \- [[ODBCConn/ja|ODBC]] \- [[TParadox/ja|Paradox]] \- [[SQLite/ja|SQLite]] \- [[Lazarus Tdbf Tutorial/ja|dBASE]] \- [[MS Access/ja|MS Access]] \- [[Zeos tutorial/ja|Zeos]]
4+
5+
16## 概要
27
3-この記事は、 Lazarus で動くデータベースに関する概要です。
8+この記事は、 Lazarus で動くデータベースに関する概要です。
49
5-Lazarus はいくつかのデータベースをインストール時にサポートしています(例えば SQLDB フレームワークを用いるなど)。しかし、プログラム作成者は必要とされるパッケージ(クライアントライブラリ)をインストールする必要があります。
10+Lazarus はいくつかのデータベースをインストール時にサポートしています(例えば SQLDB フレームワークを用いるなど)。しかし、プログラム作成者は必要とされるパッケージ(クライアントライブラリ)をインストールする必要があります。
611
7-あなたは、コードを通して、またはフォームにコンポーネントをドロップすることで、データベースにアクセスできます。 data-aware コンポーネント は フィールド を表し、[[TDataSource/ja|TDataSource/jaにポイントする]] DataSource プロパティ を設定することで、接続されます。 Datasource は テーブルを表し、DataSet プロパティ を設定することで、データベース コンポーネント (例: *[[TPSQLDatabase/ja]]*や *[[TSQLiteDataSet/ja]]*) に接続されます。 data-aware コンポーネントは [[Data Controls tab/ja]] にあります。 Datasource とデータベースのコントロールは、 "Data Access" タブにあります。
12+あなたは、コードを通して、またはフォームにコンポーネントをドロップすることで、データベースにアクセスできます。 data-aware コンポーネント は フィールド を表し、[[TDataSource/ja]]にポイントする DataSource プロパティ を設定することで、接続されます。 Datasource は テーブルを表し、DataSet プロパティ を設定することで、データベース コンポーネント (例: _[[TPSQLDatabase/ja]]_ や _[[TSQLiteDataSet/ja]]_) に接続されます。 data-aware コンポーネントは [[Data Controls tab/ja]] にあります。 Datasource とデータベースのコントロールは、 "Data Access" タブにあります。
813
9-Lazarus/FPC のビルトインのデータベースアクセスや、Firebird, MySQL, SQLite, PostgreSQL などに適したものは、以下のチュートリアルを参照してください。:
14+Lazarus/FPC のビルトインのデータベースアクセスや、Firebird, MySQL, SQLite, PostgreSQL などに適したものは、以下のチュートリアルを参照してください。:
1015
11-- [[SQLdb Tutorial0/ja]]
12-- [[SQLdb Tutorial1/ja]]
13-- [[SQLdb Tutorial2/ja]]
14-- [[SQLdb Tutorial3/ja]]
15-- [[SQLdb Tutorial4/ja]]
16+ * [[SQLdb Tutorial0/ja]]
17+ * [[SQLdb Tutorial1/ja]]
18+ * [[SQLdb Tutorial2/ja]]
19+ * [[SQLdb Tutorial3/ja]]
20+ * [[SQLdb Tutorial4/ja]]
1621
1722## Lazarus と Interbase / Firebird
1823
19-- Firebirdは、FPC/Lazarus(SQLDBを使用)によって非常によくサポートされている。詳細については、Firebirdのドキュメントを参照のこと。
20-- [[Other Firebird libraries/ja|他のFirebirdライブラリページには]]、Firebirdへのアクセスを提供する代替ライブラリのリストが含まれている。
24+ * Firebirdは、FPC/Lazarus(SQLDBを使用)によって非常によくサポートされている。詳細については、Firebirdのドキュメントを参照のこと。
25+ * [[Other Firebird libraries/ja|他のFirebirdライブラリ]]ページには、Firebirdへのアクセスを提供する代替ライブラリのリストが含まれている。
2126
2227## Lazarus と MySQL
2328
24-- Please see [[mysql/ja]] for details on various access methods, which include:
29+ * Please see [[mysql/ja]] for details on various access methods, which include:
2530
26-1. ビルトインの [[SQLdb Package/ja|SQLdb]] によるサポート
27-2. PDO(Pascal Data Objects)
28-3. [[ZeosDBO/ja|Zeos]]
29-4. [MySQL data access Lazarus components](https://www.devart.com/mydac/)
31+ 1. ビルトインの [[SQLdb Package/ja|SQLdb]] によるサポート
32+ 2. PDO(Pascal Data Objects)
33+ 3. [[ZeosDBO/ja|Zeos]]
34+ 4. [MySQL data access Lazarus components](<https://www.devart.com/mydac/>)
3035
3136## Lazarus と MSSQL/Sybase
3237
33-Microsoft SQL Server データベースには、以下の方法で接続できます。
38+Microsoft SQL Server データベースには、以下の方法で接続できます。
3439
35-1. [SQL Server data access Lazarus components](https://www.devart.com/sdac/)。 これらは Windows と Mac OS X 上で動きます。ダウンロードは自由にできます。
36-2. ビルトインの **SQLdb** コネクタである **TMSSQLConnection** と **TSybaseConnection** (Lazarus 1.0.8/FPC 2.6.2 以降)。: [[mssqlconn/ja|mssqlconn/jaも]]参照のこと。
37-3. **Zeos** コンポーネントの **TZConnection** (最新の CVS は、このページのどこかにある Zeos へのリンク先を見てください。)
38- 1. On Windows you can choose between native library **ntwdblib.dll** (protocol **mssql**) or FreeTDS libraries (protocol **FreeTDS_MsSQL-nnnn**) where nnnn is one of four variants depending on the server version. For Delphi (not Lazarus) there is also another Zeos protocol **ado** for MSSQL 2005 or later. Using protocols mssql or ado generates code not platform independient.
39- 2. On Linux the only way is with FreeTDS protocols and libraries (you should use **libsybdb.so**).
40-4. **ODBC** (MSSQL and Sybase ASE) with SQLdb **TODBCConnection** (consider using **TMSSQLConnection** and **TSybaseConnection** instead)
41- 1. See also [1](http://wiki.freepascal.org/ODBCConn#Connecting_to_Microsoft_SQL_Server)
42- 2. On Windows it uses native ODBC Microsoft libraries (like sqlsrv32.dll for MSSQL 2000)
43- 3. On Linux it uses unixODBC + FreeTDS (packages unixodbc or iodbc, and tdsodbc). Since 2012 there is also a Microsoft SQL Server ODBC Driver 1.0 for Linux which is a binary product (no open source) and provides native connectivity, but was released only for 64 bits and only for RedHat.
40+ 1. [SQL Server data access Lazarus components](<https://www.devart.com/sdac/>)。 これらは Windows と Mac OS X 上で動きます。ダウンロードは自由にできます。
41+ 2. ビルトインの **SQLdb** コネクタである **TMSSQLConnection** と **TSybaseConnection** (Lazarus 1.0.8/FPC 2.6.2 以降)。: [[mssqlconn/ja]]も参照のこと。
42+ 3. **Zeos** コンポーネントの **TZConnection** (最新の CVS は、このページのどこかにある Zeos へのリンク先を見てください。)
43+ 1. On Windows you can choose between native library **ntwdblib.dll** (protocol **mssql**) or FreeTDS libraries (protocol **FreeTDS_MsSQL-nnnn**) where nnnn is one of four variants depending on the server version. For Delphi (not Lazarus) there is also another Zeos protocol **ado** for MSSQL 2005 or later. Using protocols mssql or ado generates code not platform independient.
44+ 2. On Linux the only way is with FreeTDS protocols and libraries (you should use **libsybdb.so**).
45+ 4. **ODBC** (MSSQL and Sybase ASE) with SQLdb **TODBCConnection** (consider using **TMSSQLConnection** and **TSybaseConnection** instead)
46+ 1. See also [[1]](<http://wiki.freepascal.org/ODBCConn#Connecting_to_Microsoft_SQL_Server>)
47+ 2. On Windows it uses native ODBC Microsoft libraries (like sqlsrv32.dll for MSSQL 2000)
48+ 3. On Linux it uses unixODBC + FreeTDS (packages unixodbc or iodbc, and tdsodbc). Since 2012 there is also a Microsoft SQL Server ODBC Driver 1.0 for Linux which is a binary product (no open source) and provides native connectivity, but was released only for 64 bits and only for RedHat.
4449
4550## Lazarus と ODBC
4651
47-ODBC is a general database connection standard which is available on Linux, Windows and OSX. You will need an ODBC driver from your database vendor and set up an ODBC "data source" (also known as DSN). You can use the SQLDB components ([[TODBCConnection]]) to connect to an ODBC data soruce. See [[ODBCConn]] for more details and examples.
52+ODBCはLinux、Windows、OSXで利用できる一般的な標準データベース接続である。データベースベンダからODBCドライバを供給してもらい、ODBCデータソース(DSNとしても知られる)を設定する。ODBCデータソースに接続するため、SQLDBコンポーネント([[TODBCConnection/ja]])を用いることができる。詳細と例に関しては[[ODBCConn/ja]]を参照されたい
4853
4954### Microsoft Access
5055
51-You can use the ODBC driver on Windows as well as Linux to access Access databases; see [[MS Access]]
56+Windows、同様にLinuxでAccessデータベースにアクセスするためにODBCドライバを用いることができる: [[MS Access/ja]]を参照されたい
5257
5358## Lazarus と Oracle
5459
55-- See [[Oracle]]. Access methods include:
60+ * [[Oracle/ja]]を参照されたい。アクセス方法には:
5661
57-1. Built-in SQLDB support
58-2. Zeos
59-3. [Oracle data access Lazarus component](https://www.devart.com/odac/)
62+ 1. 組み込みの SQLDB サポート
63+ 2. Zeos
64+ 3. [devart.com/odac/ Oracle data access Lazarus component]
6065
66+がある。
67+
6168## Lazarus と PostgreSQL
6269
63-- PostgreSQL is very well supported out of the box by FPC/Lazarus
64-- Please see [[postgres]] for details on various access methods, which include:
70+ * PostgreSQLはFPC/Lazarusで組込で非常によくサポートされている
71+ * 様々なアクセス方法の詳細は[[postgres/ja]]を参照されたい。以下が含まれる:
6572
66-1. Built-in SQLdb support. Use component **TPQConnection** from the [[SQLdb tab]] of the [[Component Palette]]
67-2. [[Zeos]]. Use component **TZConnection** with protocol 'postgresql' from palette **Zeos Access**
68-3. [PostgreSQL data access Lazarus component](https://www.devart.com/pgdac/)
73+ 1. 組み込みのSQLdb support. [[Component Palette/ja]]の[[SQLdb tab/ja]]コメント **TPQConnection** を参照されたい
74+ 2. [[Zeos]]. **Zeos Access** パレットから'postgresql'の**TZConnection** を参照されたい
75+ 3. [devart.com/pgdac/ PostgreSQL data access Lazarus component]
6976
7077## Lazarus と SQLite
7178
72-SQLite は組み込み型のデータベースです。; データベースのコードはライブラリ(.dll/.so/.dylib)としてあなたのアプリケーションと共に提供できます。to make it self-contained (comparable to Firebird embedded). SQLite is quite popular due to its relative simplicity, speed, small size and cross-platform support.
79+SQLite は組み込み型のデータベースです。; データベースのコードはライブラリ(.dll/.so/.dylib)としてあなたのアプリケーションと共に提供できます。to make it self-contained (comparable to Firebird embedded). SQLite is quite popular due to its relative simplicity, speed, small size and cross-platform support.
7380
74-Please see the [[SQLite]] page for details on various access methods, which include:
81+Please see the [[SQLite]] page for details on various access methods, which include:
7582
76-1. ビルトインの SQLDb によるサポート。 **SQLdb** タブにあるコンポーネント **TSQLite3Connection** を使ってください。
77-2. Zeos
78-3. SQLitePass
79-4. TSQLite3Dataset
80-5. [SQLite data access Lazarus components](https://www.devart.com/litedac/)
83+ 1. ビルトインの SQLDb によるサポート。 **SQLdb** タブにあるコンポーネント **TSQLite3Connection** を使ってください。
84+ 2. Zeos
85+ 3. SQLitePass
86+ 4. TSQLite3Dataset
87+ 5. [SQLite data access Lazarus components](<https://www.devart.com/litedac/>)
8188
8289## Lazarus と Firebird/Interbase
8390
84-InterBase (and FireBird) Data Access Components (IBDAC) is a library of components that provides native connectivity to InterBase, Firebird and Yaffil from Lazarus (and Free Pascal) on Windows, Mac OS X, iOS, Android, Linux, and FreeBSD for both 32-bit and 64-bit platforms. IBDAC-based applications connect to the server directly using the InterBase client. IBDAC is designed to help programmers develop faster and cleaner InterBase database applications.
91+InterBase (and FireBird) Data Access Components (IBDAC) is a library of components that provides native connectivity to InterBase, Firebird and Yaffil from Lazarus (and Free Pascal) on Windows, Mac OS X, iOS, Android, Linux, and FreeBSD for both 32-bit and 64-bit platforms. IBDAC-based applications connect to the server directly using the InterBase client. IBDAC is designed to help programmers develop faster and cleaner InterBase database applications.
8592
86-IBDAC is a complete replacement for standard InterBase connectivity solutions. It presents an efficient alternative to InterBase Express Components, the Borland Database Engine (BDE), and the standard dbExpress driver for access to InterBase.
93+IBDAC is a complete replacement for standard InterBase connectivity solutions. It presents an efficient alternative to InterBase Express Components, the Borland Database Engine (BDE), and the standard dbExpress driver for access to InterBase.
8794
88-[Firebird data access components for Lazarus](https://www.devart.com/ibdac/download.html) are free to download.
95+[Firebird data access components for Lazarus](<https://www.devart.com/ibdac/download.html>) are free to download.
8996
9097## Lazarus と dBase
9198
92-FPC includes a simple database component that is derived from the Delphi TTable component called "TDbf" [TDbf Website](http://tdbf.sourceforge.net/)). It supports various DBase and Foxpro formats.
99+FPC includes a simple database component that is derived from the Delphi TTable component called "TDbf" [TDbf Website](<http://tdbf.sourceforge.net/>)). It supports various DBase and Foxpro formats.
93100
94-**TDbf** does not accept SQL commands but you can use the dataset methods etc and you can also use regular databound controls such as the DBGrid.
101+**TDbf** does not accept SQL commands but you can use the dataset methods etc and you can also use regular databound controls such as the DBGrid.
95102
96-It doesn't require any sort of runtime database engine. However it's not the best option for large database applications.
103+It doesn't require any sort of runtime database engine. However it's not the best option for large database applications.
97104
98-See the [[Lazarus Tdbf Tutorial|TDbf Tutorial page]] for the tutorial as well as documentation.
105+See the [[Lazarus Tdbf Tutorial|TDbf Tutorial page]] for the tutorial as well as documentation.
99106
100-You can use e.g. OpenOffice/LibreOffice Base to visually create/edit dbf files, or create DBFs in code using [[TDbf]].
107+You can use e.g. OpenOffice/LibreOffice Base to visually create/edit dbf files, or create DBFs in code using [[TDbf]].
101108
102109## Lazarus と Paradox
103110
104-Paradox was the default format for database files in old versions of Delphi. The concept is similar to DBase files/DBFs, where the "database" is a folder, and each table is a file inside that folder. Also, each index is a file too. To access this files from Lazarus we have these options:
111+Paradox was the default format for database files in old versions of Delphi. The concept is similar to DBase files/DBFs, where the "database" is a folder, and each table is a file inside that folder. Also, each index is a file too. To access this files from Lazarus we have these options:
105112
106-- **[[TParadox/ja]]**: Install package "lazparadox 0.0" included in the standard distribution. When you install this package, you will see a new component labeled "PDX" in the "Data Access" palette. This component is not standalone, it uses a "native" library, namely the [pdxlib library](http://pxlib.sourceforge.net) which is available for Linux and Windows. For example, to install in Debian, you could get **pxlib1** from package manager. In Windows you need the pxlib.dll file.
113+ * **[[TParadox/ja]]** : Install package "lazparadox 0.0" included in the standard distribution. When you install this package, you will see a new component labeled "PDX" in the "Data Access" palette. This component is not standalone, it uses a "native" library, namely the [pdxlib library](<http://pxlib.sourceforge.net>) which is available for Linux and Windows. For example, to install in Debian, you could get **pxlib1** from package manager. In Windows you need the pxlib.dll file.
107114
108-- **[[TPdx/ja]]**: Paradox DataSet for Lazarus and Delphi from [this site](http://tpdx.sourceforge.net/). This component is standalone (pure object pascal), not requiring any external library, but it can only read (not write) Paradox files. The package to install is "paradoxlaz.lpk" and the component should appear in the "Data Access" palette with PDX label (but orange colour).
115+ * **[[TPdx/ja]]** : Paradox DataSet for Lazarus and Delphi from [this site](<http://tpdx.sourceforge.net/>). This component is standalone (pure object pascal), not requiring any external library, but it can only read (not write) Paradox files. The package to install is "paradoxlaz.lpk" and the component should appear in the "Data Access" palette with PDX label (but orange colour).
109116
110-- **[[TParadoxDataSet/ja]]**: is a [[TDataSet/ja]] that can only read Paradox Files up to Version 7. The approach is similar to the TPdx component, the package to install is "lazparadox.lpk" and the component should also appear in the "Data Access" palette.
117+ * **[[TParadoxDataSet/ja]]** : is a [[TDataSet/ja]] that can only read Paradox Files up to Version 7. The approach is similar to the TPdx component, the package to install is "lazparadox.lpk" and the component should also appear in the "Data Access" palette.
111118
112119## TSdfDataset と TFixedDataset
113120
114-[[TSdfDataSet/ja]] と [[TFixedFormatDataSet/ja]] は二つのシンプルな [[TDataSet/ja]] の後継機能であり、とても簡単なテキスト形式のデータベースを提供します。 これらのデータセットはオブジェクトパスカルのユニットに完全に実装されており、外部のライブラリが不要なことからも、小さなデータベースにとても便利です。 また、それらはテキスト形式のフォーマットであることから、簡単にテキストエディタで中身を見たり、編集したりできます。
121+[[TSdfDataSet/ja]] と [[TFixedFormatDataSet/ja]] は二つのシンプルな [[TDataSet/ja]] の後継機能であり、とても簡単なテキスト形式のデータベースを提供します。 これらのデータセットはオブジェクトパスカルのユニットに完全に実装されており、外部のライブラリが不要なことからも、小さなデータベースにとても便利です。 また、それらはテキスト形式のフォーマットであることから、簡単にテキストエディタで中身を見たり、編集したりできます。
115122
116-サンプルコードとしては、 [[CSV/ja]] もご覧ください。
123+サンプルコードとしては、 [[CSV/ja]] もご覧ください。
117124
118125## Lazarus と Advantage Database Server
119126
120-- Please see [[Advantage Database Server/ja]] for details on using Advantage Database Server
127+ * Please see [[Advantage Database Server/ja]] for details on using Advantage Database Server
121128
122129## 関連情報
123130
124-(アルファベット順にソートしています。)
131+(アルファベット順にソートしています。)
125132
126-- [[Portal:Databases/ja|Database Portal]]
127-- [[Databases/ja]]
128-- [[Database field type/ja]]
129-- [[How to write in-memory database applications in Lazarus/FPC/ja]]
130-- [[Lazarus DB Faq/ja]]
131-- [[Lazarus Tdbf Tutorial/ja]]
132-- [[multi-tier options with fpc/ja|Multi-tier options with FPC]]
133-- [[SQLdb Tutorial1/ja]]
134-- [[SqlDBHowto/ja]]
135-- [[tiOPF/ja]] - a free and open source Object Persistence Framework.
136-- [[Zeos tutorial/ja]]
133+ * [[Portal:Databases/ja|Database Portal]]
134+ * [[Databases/ja]]
135+ * [[Database field type/ja]]
136+ * [[How to write in-memory database applications in Lazarus/FPC/ja]]
137+ * [[Lazarus DB Faq/ja]]
138+ * [[Lazarus Tdbf Tutorial/ja]]
139+ * [[multi-tier options with fpc/ja|Multi-tier options with FPC]]
140+ * [[SQLdb Tutorial1/ja]]
141+ * [[SqlDBHowto/ja]]
142+ * [[tiOPF/ja]] \- a free and open source Object Persistence Framework.
143+ * [[Zeos tutorial/ja]]
137144
138145## 外部リンク
139146
140-- [Pascal Data Objects](http://pdo.sourceforge.net) - データベースの API です。 FPC と Delphi の両方で動き、and utilises native MySQL libraries for version 4.1 and 5.0 and Firebird SQL 1.5, and 2.0. It's inspired by PHP's PDO class.
141-- [Zeos+SQLite Tutorial](http://lazaruszeos.blogspot.com) - スクリーンショットとスクリーンキャストを用いた SQLite と Zeos の使い方の良いチュートリアルです。 スペイン語です。(分からない場合、 Google 翻訳による英語への翻訳を用いるとよいでしょう。)
147+ * [Pascal Data Objects](<http://pdo.sourceforge.net>) \- データベースの API です。 FPC と Delphi の両方で動き、and utilises native MySQL libraries for version 4.1 and 5.0 and Firebird SQL 1.5, and 2.0. It's inspired by PHP's PDO class.
148+ * [Zeos+SQLite Tutorial](<http://lazaruszeos.blogspot.com>) \- スクリーンショットとスクリーンキャストを用いた SQLite と Zeos の使い方の良いチュートリアルです。 スペイン語です。(分からない場合、 Google 翻訳による英語への翻訳を用いるとよいでしょう。)
142149
143150---
144-*From the Free Pascal wiki, page "Lazarus Database Overview/ja", as it stood on 2024-03-27 after a change by Ariben, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
151+*From the Free Pascal wiki, page "Lazarus Database Overview/ja", as the Internet Archive kept it on 2025-01-17, last changed on 2024-09-23. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history