Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
f77f88b9
Commit
f77f88b9
authored
10 years ago
by
Jennifer Hodgdon
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2312607
by lokeoke: Fix formatting issue on Database topic page
parent
c77851c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/includes/database.inc
+8
-8
8 additions, 8 deletions
core/includes/database.inc
with
8 additions
and
8 deletions
core/includes/database.inc
+
8
−
8
View file @
f77f88b9
...
...
@@ -18,7 +18,7 @@
* @{
* Allow the use of different database servers using the same code base.
*
* @sec sec_intro Overview
* @sec
tion
sec_intro Overview
* Drupal's database abstraction layer provides a unified database query API
* that can query different underlying databases. It is built upon PHP's
* PDO (PHP Data Objects) database API, and inherits much of its syntax and
...
...
@@ -30,11 +30,11 @@
* For more detailed information on the database abstraction layer, see
* https://drupal.org/developing/api/database
*
* @sec sec_entity Querying entities
* @sec
tion
sec_entity Querying entities
* Any query on Drupal entities or fields should use the Entity Query API. See
* the @link entity_api entity API topic @endlink for more information.
*
* @sec sec_simple Simple SELECT database queries
* @sec
tion
sec_simple Simple SELECT database queries
* For simple SELECT queries that do not involve entities, the Drupal database
* abstraction layer provides the functions db_query() and db_query_range(),
* which execute SELECT queries (optionally with range limits) and return result
...
...
@@ -90,7 +90,7 @@
* ... array(':my_field' => 'foo') ...
* @endcode
*
* @sec sec_dynamic Dynamic SELECT queries
* @sec
tion
sec_dynamic Dynamic SELECT queries
* For SELECT queries where the simple query API described in @ref sec_simple
* will not work well, you need to use the dynamic query API. However, you
* should still use the Entity Query API if your query involves entities or
...
...
@@ -115,7 +115,7 @@
* @endcode
*
* There are also methods to join to other tables, add fields with aliases,
* isNull() to have a @code WHERE e.foo IS NULL @code condition, etc. See
* isNull() to have a @code WHERE e.foo IS NULL @
end
code condition, etc. See
* https://drupal.org/developing/api/database for many more details.
*
* One note on chaining: It is common in the dynamic database API to chain
...
...
@@ -129,7 +129,7 @@
* returns the query or something else, and only chain methods that return the
* query.
*
* @sec_insert INSERT, UPDATE, and DELETE queries
* @sec
tion
_insert INSERT, UPDATE, and DELETE queries
* INSERT, UPDATE, and DELETE queries need special care in order to behave
* consistently across databases; you should never use db_query() to run
* an INSERT, UPDATE, or DELETE query. Instead, use functions db_insert(),
...
...
@@ -153,7 +153,7 @@
* ->execute();
* @endcode
*
* @sec sec_transaction Tranactions
* @sec
tion
sec_transaction Tranactions
* Drupal supports transactions, including a transparent fallback for
* databases that do not support transactions. To start a new transaction,
* call @code $txn = db_transaction(); @endcode The transaction will
...
...
@@ -204,7 +204,7 @@
* }
* @endcode
*
* @sec sec_connection Database connection objects
* @sec
tion
sec_connection Database connection objects
* The examples here all use functions like db_select() and db_query(), which
* can be called from any Drupal method or function code. In some classes, you
* may already have a database connection object in a member variable, or it may
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment