Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pquery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pquery
Commits
8808bee9
Commit
8808bee9
authored
Dec 05, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation of SQL lugin.
parent
72b6e456
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
pquery.sql.php
pquery.sql.php
+6
-5
No files found.
pquery.sql.php
View file @
8808bee9
...
@@ -10,14 +10,15 @@
...
@@ -10,14 +10,15 @@
* @property $query The query that is being evaluated.
* @property $query The query that is being evaluated.
*/
*/
class
pQuerySql
extends
pQuery
implements
pQueryExtension
{
class
pQuerySql
extends
pQuery
implements
pQueryExtension
{
const
VARIABLE_PATTERN
=
'/\[\s*%s\s*\]/'
;
static
$accepts
=
array
(
'string'
=>
'parse_query'
,
'resource'
);
static
$accepts
=
array
(
'string'
=>
'parse_query'
,
'resource'
);
/**
* The pattern to use for specifying variables in a query.
*/
const
VARIABLE_PATTERN
=
'/\[\s*%s\s*\]/'
;
/**
/**
* The default row fetching type, one of 'assoc', 'object' or 'array'.
* The default row fetching type, one of 'assoc', 'object' or 'array'.
*
* @var resource
*/
*/
const
DEFAULT_FETCH_TYPE
=
'assoc'
;
const
DEFAULT_FETCH_TYPE
=
'assoc'
;
...
@@ -143,7 +144,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
...
@@ -143,7 +144,7 @@ class pQuerySql extends pQuery implements pQueryExtension {
/**
/**
* Find the number of resulting rows of the current query.
* Find the number of resulting rows of the current query.
*
*
* @returns int The number of rows.
* @returns int The number of r
esult r
ows.
*/
*/
function
result_count
()
{
function
result_count
()
{
$this
->
assert_execution
();
$this
->
assert_execution
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment