mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-03-14 16:17:13 +01:00
Remove the comparison metamethods from the SQLite module.
This commit is contained in:
parent
3107513350
commit
b9bc8ce2ad
@ -518,7 +518,6 @@ void Register_Column(Table & sqlns)
|
|||||||
.Ctor()
|
.Ctor()
|
||||||
.Ctor< const Column & >()
|
.Ctor< const Column & >()
|
||||||
// Meta-methods
|
// Meta-methods
|
||||||
.Func(_SC("_cmp"), &Column::Cmp)
|
|
||||||
.SquirrelFunc(_SC("_typename"), &Column::Typename)
|
.SquirrelFunc(_SC("_typename"), &Column::Typename)
|
||||||
.Func(_SC("_tostring"), &Column::ToString)
|
.Func(_SC("_tostring"), &Column::ToString)
|
||||||
// Properties
|
// Properties
|
||||||
|
@ -199,25 +199,6 @@ public:
|
|||||||
return m_Index >= 0;
|
return m_Index >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
|
||||||
* Used by the script engine to compare two instances of this type.
|
|
||||||
*/
|
|
||||||
Int32 Cmp(const Column & o) const
|
|
||||||
{
|
|
||||||
if (m_Index == o.m_Index)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else if (m_Index > o.m_Index)
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Used by the script engine to convert an instance of this type to a string.
|
* Used by the script engine to convert an instance of this type to a string.
|
||||||
*/
|
*/
|
||||||
|
@ -516,7 +516,6 @@ void Register_Connection(Table & sqlns)
|
|||||||
.Ctor< CCStr, Int32 >()
|
.Ctor< CCStr, Int32 >()
|
||||||
.Ctor< CCStr, Int32, CCStr >()
|
.Ctor< CCStr, Int32, CCStr >()
|
||||||
// Meta-methods
|
// Meta-methods
|
||||||
.Func(_SC("_cmp"), &Connection::Cmp)
|
|
||||||
.SquirrelFunc(_SC("_typename"), &Connection::Typename)
|
.SquirrelFunc(_SC("_typename"), &Connection::Typename)
|
||||||
.Func(_SC("_tostring"), &Connection::ToString)
|
.Func(_SC("_tostring"), &Connection::ToString)
|
||||||
// Properties
|
// Properties
|
||||||
|
@ -171,25 +171,6 @@ public:
|
|||||||
return m_Handle ? m_Handle->mPtr : nullptr;
|
return m_Handle ? m_Handle->mPtr : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
|
||||||
* Used by the script engine to compare two instances of this type.
|
|
||||||
*/
|
|
||||||
Int32 Cmp(const Connection & o) const
|
|
||||||
{
|
|
||||||
if (m_Handle.Get() == o.m_Handle.Get())
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else if (m_Handle.Get() > o.m_Handle.Get())
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Used by the script engine to convert an instance of this type to a string.
|
* Used by the script engine to convert an instance of this type to a string.
|
||||||
*/
|
*/
|
||||||
|
@ -789,7 +789,6 @@ void Register_Parameter(Table & sqlns)
|
|||||||
.Ctor()
|
.Ctor()
|
||||||
.Ctor< const Parameter & >()
|
.Ctor< const Parameter & >()
|
||||||
// Meta-methods
|
// Meta-methods
|
||||||
.Func(_SC("_cmp"), &Parameter::Cmp)
|
|
||||||
.SquirrelFunc(_SC("_typename"), &Parameter::Typename)
|
.SquirrelFunc(_SC("_typename"), &Parameter::Typename)
|
||||||
.Func(_SC("_tostring"), &Parameter::ToString)
|
.Func(_SC("_tostring"), &Parameter::ToString)
|
||||||
// Properties
|
// Properties
|
||||||
|
@ -193,25 +193,6 @@ public:
|
|||||||
return m_Index >= 0;
|
return m_Index >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
|
||||||
* Used by the script engine to compare two instances of this type.
|
|
||||||
*/
|
|
||||||
Int32 Cmp(const Parameter & o) const
|
|
||||||
{
|
|
||||||
if (m_Index == o.m_Index)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else if (m_Index > o.m_Index)
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Used by the script engine to convert an instance of this type to a string.
|
* Used by the script engine to convert an instance of this type to a string.
|
||||||
*/
|
*/
|
||||||
|
@ -432,7 +432,6 @@ void Register_Statement(Table & sqlns)
|
|||||||
.Ctor< const Statement & >()
|
.Ctor< const Statement & >()
|
||||||
.Ctor< const Connection &, CCStr >()
|
.Ctor< const Connection &, CCStr >()
|
||||||
// Meta-methods
|
// Meta-methods
|
||||||
.Func(_SC("_cmp"), &Statement::Cmp)
|
|
||||||
.SquirrelFunc(_SC("_typename"), &Statement::Typename)
|
.SquirrelFunc(_SC("_typename"), &Statement::Typename)
|
||||||
.Func(_SC("_tostring"), &Statement::ToString)
|
.Func(_SC("_tostring"), &Statement::ToString)
|
||||||
// Properties
|
// Properties
|
||||||
|
@ -170,25 +170,6 @@ public:
|
|||||||
return m_Handle ? m_Handle->mPtr : nullptr;
|
return m_Handle ? m_Handle->mPtr : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
|
||||||
* Used by the script engine to compare two instances of this type.
|
|
||||||
*/
|
|
||||||
Int32 Cmp(const Statement & o) const
|
|
||||||
{
|
|
||||||
if (m_Handle.Get() == o.m_Handle.Get())
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else if (m_Handle.Get() > o.m_Handle.Get())
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Used by the script engine to convert an instance of this type to a string.
|
* Used by the script engine to convert an instance of this type to a string.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user