Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
1bf8a62a
Commit
1bf8a62a
authored
8 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
SqliteRset now inherits from DbRset
parent
205858b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
catalogue/SqliteRset.hpp
+9
-7
9 additions, 7 deletions
catalogue/SqliteRset.hpp
with
9 additions
and
7 deletions
catalogue/SqliteRset.hpp
+
9
−
7
View file @
1bf8a62a
...
...
@@ -18,6 +18,8 @@
#pragma once
#include
"catalogue/DbRset.hpp"
#include
<memory>
#include
<stdint.h>
#include
<sqlite3.h>
...
...
@@ -33,7 +35,7 @@ class SqliteStmt;
/**
* The result set of an sql query.
*/
class
SqliteRset
{
class
SqliteRset
:
public
DbRset
{
public:
/**
...
...
@@ -56,18 +58,18 @@ public:
*
* @return The SQL statement.
*/
const
char
*
getSql
()
const
;
virtual
const
char
*
getSql
()
const
;
/**
* Attempts to get the next row of the result set.
*
* Please note that this method will delete the memory ass
c
oiated with any
* Please note that this method will delete the memory asso
c
iated with any
* C-strings returned by the columnText() method.
*
* @return True if a row has been retrieved else false if there are no more
* rows in the result set.
*/
bool
next
();
virtual
bool
next
();
/**
* Returns true if the specified column contains a null value.
...
...
@@ -75,7 +77,7 @@ public:
* @param colName The name of the column.
* @return True if the specified column contains a null value.
*/
bool
columnIsNull
(
const
char
*
const
colName
)
const
;
virtual
bool
columnIsNull
(
const
char
*
const
colName
)
const
;
/**
* Returns the value of the specified column as a string.
...
...
@@ -94,7 +96,7 @@ public:
* the next call to the next() method. The SqliteRset class is responsible
* for freeing the memory.
*/
const
char
*
columnText
(
const
char
*
const
colName
)
const
;
virtual
const
char
*
columnText
(
const
char
*
const
colName
)
const
;
/**
* Returns the value of the specified column as an integer.
...
...
@@ -102,7 +104,7 @@ public:
* @param colName The name of the column.
* @return The value of the specified column.
*/
uint64_t
columnUint64
(
const
char
*
const
colName
)
const
;
virtual
uint64_t
columnUint64
(
const
char
*
const
colName
)
const
;
private:
...
...
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