implemented sqlite fetch
This commit is contained in:
@@ -26,6 +26,9 @@ inline constraints operator&(constraints a, constraints b)
|
||||
return static_cast<constraints>(static_cast<unsigned int>(a) & static_cast<unsigned int>(b));
|
||||
}
|
||||
|
||||
inline constraints& operator|= (constraints& a, constraints b) { return (constraints&)((int&)a |= (int)b); }
|
||||
inline constraints& operator&= (constraints& a, constraints b) { return (constraints&)((int&)a &= (int)b); }
|
||||
|
||||
inline bool is_constraint_set(constraints source, constraints needle)
|
||||
{
|
||||
return static_cast<int>(source & needle) > 0;
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
#ifndef QUERY_IDENTIFIABLE_HPP
|
||||
#define QUERY_IDENTIFIABLE_HPP
|
||||
|
||||
#include "matador/utils/identifier.hpp"
|
||||
|
||||
namespace matador::utils {
|
||||
|
||||
/**
|
||||
* Base class for all pointer object
|
||||
* which can contain an identifiable
|
||||
*/
|
||||
class identifiable
|
||||
{
|
||||
public:
|
||||
virtual ~identifiable() = default;
|
||||
|
||||
/**
|
||||
* Resets the object_holder with the given
|
||||
* identifier. If the type of identifier differs
|
||||
* from internal type an exception is thrown
|
||||
*
|
||||
* @param id The identifier to set
|
||||
*/
|
||||
virtual void reset(const identifier &id) = 0;
|
||||
|
||||
/**
|
||||
* Returns true if serializable has a primary key
|
||||
*
|
||||
* @return true if serializable has a primary key
|
||||
*/
|
||||
[[nodiscard]] virtual bool has_primary_key() const = 0;
|
||||
|
||||
/**
|
||||
* Gets the primary key of the foreign serializable
|
||||
*
|
||||
* @return The primary key of the foreign serializable
|
||||
*/
|
||||
[[nodiscard]] virtual const identifier& primary_key() const = 0;
|
||||
virtual identifier& primary_key() = 0;
|
||||
|
||||
/**
|
||||
* Creates a new identifier object.
|
||||
*
|
||||
* @return Returns a new identifier object.
|
||||
*/
|
||||
[[nodiscard]] virtual identifier create_identifier() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
#endif //QUERY_IDENTIFIABLE_HPP
|
||||
Reference in New Issue
Block a user