You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit the ini-file according to your database. If you don't have a database server installed, try SQLite (easiest) or XML.
94
+
**Important**: This example uses design-time Bold components, so you must install the Bold package first (Step 2 above). Then open and compile MasterDetail. It defaults to SQLite — no database server needed, just press F9.
100
95
101
96
Second option is to build app from scratch. More fun and more learning 😊
102
97
We'll build a simple app with **Person** and **Building** objects, where persons can own buildings.
@@ -130,7 +125,21 @@ Connect them:
130
125
### Step 4: Add Database Connection
131
126
132
127
1. Drop a `TFDConnection` (FireDAC) on the DataModule
133
-
2. Configure it for your database:
128
+
2. Configure it for your database. **SQLite is the easiest to start with** — no server needed:
129
+
130
+
```ini
131
+
[Database]
132
+
Persistence=FireDAC
133
+
Type=SQLite
134
+
135
+
[SQLite]
136
+
Database=BoldDemo.db
137
+
```
138
+
139
+
The database file is created automatically on first run.
VendorLib=C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.dll
190
199
```
191
200
192
-
Note: MariaDB requires the MariaDB Connector/C client library. Download it from https://mariadb.com/downloads/connectors/ (select Connector/C for Windows 64-bit). MySQL uses the same configuration - just point VendorLib to `libmysql.dll` instead.
201
+
Note: MariaDB requires the MariaDB Connector/C client library. Download from https://mariadb.com/downloads/connectors/ (Connector/C, Windows 64-bit). For MySQL, point VendorLib to `libmysql.dll` instead.
193
202
194
203
**For Oracle:**
195
204
```ini
@@ -204,19 +213,9 @@ Connect them:
204
213
VendorLib=C:\oracle\instantclient_23_7\oci.dll
205
214
```
206
215
207
-
Note: Oracle requires the Oracle Instant Client. Download from https://www.oracle.com/database/technologies/instant-client/downloads.html (Basic or Basic Light package). The `Database` parameter uses Easy Connect format: `//host:port/service_name`. Oracle treats empty strings as NULL, so Bold uses an EmptyStringMarker internally to preserve empty string values.
208
-
209
-
**For SQLite:**
210
-
```ini
211
-
[Database]
212
-
Persistence=FireDAC
213
-
Type=SQLite
214
-
215
-
[SQLite]
216
-
Database=BoldDemo.db
217
-
```
216
+
Note: Oracle requires the [Oracle Instant Client](https://www.oracle.com/database/technologies/instant-client/downloads.html). The `Database` parameter uses Easy Connect format: `//host:port/service_name`.
218
217
219
-
SQLite is the easiest to get started with - no server installation needed! The database file is created automatically on first run.
218
+
</details>
220
219
221
220
3. Drop a `TBoldDatabaseAdapterFireDAC` component
222
221
4. Set `BoldDatabaseAdapterFireDAC1.Connection` → `FDConnection1`
1.**Explore the Examples**: See `examples/Compound/Building/` for a complete sample
392
+
1.**Explore the Examples**: See `examples/Compound/Building/` for a more complex sample (note: this is a legacy Delphi 7 project — use it as a code reference, not as a compilable project)
394
393
2.**Read the Tutorials**: Check `Doc/Starting Bfd - Part 1, 2, 3.pdf`
395
394
3.**Learn OCL**: See `Doc/ad970808_UML11_OCL.pdf` for the OCL specification
396
395
4.**Try Derived Attributes**: Computed values that auto-update
0 commit comments