Example: Database (DBTNG)
Same name in other branches
- 3.x modules/dbtng_example/dbtng_example.module \dbtng_example
- 7.x-1.x dbtng_example/dbtng_example.module \dbtng_example
- 4.0.x modules/dbtng_example/dbtng_example.module \dbtng_example
Database examples, including DBTNG.
'DBTNG' means 'Database: The Next Generation.' Yes, Drupallers are nerds.
The interesting database queries for this example module are located in the \Drupal\dbtng_example\DbtngExampleRepository class.
General documentation is available at Database API.
See also
database
\Drupal\dbtng_example\DbtngExampleRepository
\Drupal\Core\Database\Connection:delete()
\Drupal\Core\Database\Connection:insert()
\Drupal\Core\Database\Connection:select()
\Drupal\Core\Database\Connection:update()
Parent topics
File
-
dbtng_example/
dbtng_example.module, line 11
Functions
Title Sort descending | File name | Summary |
---|---|---|
dbtng_example_install | dbtng_example/ |
Implements hook_install(). |
dbtng_example_schema | dbtng_example/ |
Implements hook_schema(). |
Classes
Title Sort descending | File name | Summary |
---|---|---|
DbtngExampleAddForm | dbtng_example/ |
Form to add a database entry, with all the interesting fields. |
DbtngExampleController | dbtng_example/ |
Controller for DBTNG Example. |
DbtngExampleRepository | dbtng_example/ |
Repository for database-related helper methods for our example. |
DbtngExampleRepositoryTest | dbtng_example/ |
Kernel testing of the DbtngExampleRepository service. |
DbtngExampleTest | dbtng_example/ |
Tests for the dbtng_example module. |
DbtngExampleUpdateForm | dbtng_example/ |
Sample UI to update a record. |