mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-04 00:07:19 +01:00 
			
		
		
		
	Added the file structure for the SQLite database wrappers.
This commit is contained in:
		
							
								
								
									
										0
									
								
								source/Library/SQLite/Common.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								source/Library/SQLite/Common.cpp
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										115
									
								
								source/Library/SQLite/Common.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								source/Library/SQLite/Common.hpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,115 @@
 | 
			
		||||
#ifndef _LIBRARY_SQLITE_COMMON_HPP_
 | 
			
		||||
#define _LIBRARY_SQLITE_COMMON_HPP_
 | 
			
		||||
 | 
			
		||||
// ------------------------------------------------------------------------------------------------
 | 
			
		||||
namespace SqMod {
 | 
			
		||||
namespace SQLite {
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------------------------------------------------------
 | 
			
		||||
 * ...
 | 
			
		||||
*/
 | 
			
		||||
class ConnectionHandle
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ConnectionHandle();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ConnectionHandle(const ConnectionHandle & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ConnectionHandle(ConnectionHandle && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ~ConnectionHandle();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ConnectionHandle & operator = (const ConnectionHandle & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ConnectionHandle & operator = (ConnectionHandle && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------------------------------------------------------
 | 
			
		||||
 * ...
 | 
			
		||||
*/
 | 
			
		||||
class StatementHandle
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    StatementHandle();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    StatementHandle(const StatementHandle & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    StatementHandle(StatementHandle && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ~StatementHandle();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    StatementHandle & operator = (const StatementHandle & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    StatementHandle & operator = (StatementHandle && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // Namespace:: SQLite
 | 
			
		||||
} // Namespace:: SqMod
 | 
			
		||||
 | 
			
		||||
#endif // _LIBRARY_SQLITE_COMMON_HPP_
 | 
			
		||||
							
								
								
									
										0
									
								
								source/Library/SQLite/Connection.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								source/Library/SQLite/Connection.cpp
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										63
									
								
								source/Library/SQLite/Connection.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								source/Library/SQLite/Connection.hpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
#ifndef _LIBRARY_SQLITE_CONNECTION_HPP_
 | 
			
		||||
#define _LIBRARY_SQLITE_CONNECTION_HPP_
 | 
			
		||||
 | 
			
		||||
// ------------------------------------------------------------------------------------------------
 | 
			
		||||
namespace SqMod {
 | 
			
		||||
namespace SQLite {
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------------------------------------------------------
 | 
			
		||||
 * ...
 | 
			
		||||
*/
 | 
			
		||||
class Connection
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Connection();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Connection(const Connection & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Connection(Connection && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ~Connection();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Connection & operator = (const Connection & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Connection & operator = (Connection && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // Namespace:: SQLite
 | 
			
		||||
} // Namespace:: SqMod
 | 
			
		||||
 | 
			
		||||
#endif // _LIBRARY_SQLITE_CONNECTION_HPP_
 | 
			
		||||
							
								
								
									
										0
									
								
								source/Library/SQLite/Result.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								source/Library/SQLite/Result.cpp
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										63
									
								
								source/Library/SQLite/Result.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								source/Library/SQLite/Result.hpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
#ifndef _LIBRARY_SQLITE_RESULT_HPP_
 | 
			
		||||
#define _LIBRARY_SQLITE_RESULT_HPP_
 | 
			
		||||
 | 
			
		||||
// ------------------------------------------------------------------------------------------------
 | 
			
		||||
namespace SqMod {
 | 
			
		||||
namespace SQLite {
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------------------------------------------------------
 | 
			
		||||
 * ...
 | 
			
		||||
*/
 | 
			
		||||
class Result
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Result();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Result(const Result & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Result(Result && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ~Result();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Result & operator = (const Result & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Result & operator = (Result && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // Namespace:: SQLite
 | 
			
		||||
} // Namespace:: SqMod
 | 
			
		||||
 | 
			
		||||
#endif // _LIBRARY_SQLITE_RESULT_HPP_
 | 
			
		||||
							
								
								
									
										0
									
								
								source/Library/SQLite/Statement.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								source/Library/SQLite/Statement.cpp
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										63
									
								
								source/Library/SQLite/Statement.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								source/Library/SQLite/Statement.hpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
#ifndef _LIBRARY_SQLITE_STATEMENT_HPP_
 | 
			
		||||
#define _LIBRARY_SQLITE_STATEMENT_HPP_
 | 
			
		||||
 | 
			
		||||
// ------------------------------------------------------------------------------------------------
 | 
			
		||||
namespace SqMod {
 | 
			
		||||
namespace SQLite {
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------------------------------------------------------
 | 
			
		||||
 * ...
 | 
			
		||||
*/
 | 
			
		||||
class Statement
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Statement();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Statement(const Statement & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Statement(Statement && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ~Statement();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Statement & operator = (const Statement & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Statement & operator = (Statement && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // Namespace:: SQLite
 | 
			
		||||
} // Namespace:: SqMod
 | 
			
		||||
 | 
			
		||||
#endif // _LIBRARY_SQLITE_STATEMENT_HPP_
 | 
			
		||||
							
								
								
									
										0
									
								
								source/Library/SQLite/Transaction.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								source/Library/SQLite/Transaction.cpp
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										63
									
								
								source/Library/SQLite/Transaction.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								source/Library/SQLite/Transaction.hpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
#ifndef _LIBRARY_SQLITE_TRANSACTION_HPP_
 | 
			
		||||
#define _LIBRARY_SQLITE_TRANSACTION_HPP_
 | 
			
		||||
 | 
			
		||||
// ------------------------------------------------------------------------------------------------
 | 
			
		||||
namespace SqMod {
 | 
			
		||||
namespace SQLite {
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------------------------------------------------------
 | 
			
		||||
 * ...
 | 
			
		||||
*/
 | 
			
		||||
class Transaction
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Transaction();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Transaction(const Transaction & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Transaction(Transaction && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    ~Transaction();
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Transaction & operator = (const Transaction & o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    Transaction & operator = (Transaction && o);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * ...
 | 
			
		||||
    */
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    // --------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // Namespace:: SQLite
 | 
			
		||||
} // Namespace:: SqMod
 | 
			
		||||
 | 
			
		||||
#endif // _LIBRARY_SQLITE_TRANSACTION_HPP_
 | 
			
		||||
		Reference in New Issue
	
	Block a user