Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f3452fcd
Commit
f3452fcd
authored
Jun 10, 2017
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MONGO catalog table
modified: storage/connect/tabmgo.cpp modified: storage/connect/tabmgo.h
parent
da3c3b90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
storage/connect/tabmgo.cpp
storage/connect/tabmgo.cpp
+5
-8
storage/connect/tabmgo.h
storage/connect/tabmgo.h
+1
-4
No files found.
storage/connect/tabmgo.cpp
View file @
f3452fcd
...
@@ -403,8 +403,8 @@ bool MGODEF::DefineAM(PGLOBAL g, LPCSTR, int poff)
...
@@ -403,8 +403,8 @@ bool MGODEF::DefineAM(PGLOBAL g, LPCSTR, int poff)
/***********************************************************************/
/***********************************************************************/
PTDB
MGODEF
::
GetTable
(
PGLOBAL
g
,
MODE
m
)
PTDB
MGODEF
::
GetTable
(
PGLOBAL
g
,
MODE
m
)
{
{
//
if (Catfunc == FNC_COL)
if
(
Catfunc
==
FNC_COL
)
//
return new(g)TDBGOL(this);
return
new
(
g
)
TDBGOL
(
this
);
return
new
(
g
)
TDBMGO
(
this
);
return
new
(
g
)
TDBMGO
(
this
);
}
// end of GetTable
}
// end of GetTable
...
@@ -1433,17 +1433,15 @@ bool MGOCOL::AddValue(PGLOBAL g, bson_t *doc, char *key, bool upd)
...
@@ -1433,17 +1433,15 @@ bool MGOCOL::AddValue(PGLOBAL g, bson_t *doc, char *key, bool upd)
}
// end of AddValue
}
// end of AddValue
#if 0
/* ---------------------------TDBGOL class --------------------------- */
/* ---------------------------TDBGOL class --------------------------- */
/***********************************************************************/
/***********************************************************************/
/* TDBGOL class constructor. */
/* TDBGOL class constructor. */
/***********************************************************************/
/***********************************************************************/
TDB
JCL::TDBJC
L(PMGODEF tdp) : TDBCAT(tdp)
TDB
GOL
::
TDBGO
L
(
PMGODEF
tdp
)
:
TDBCAT
(
tdp
)
{
{
Topt
=
tdp
->
GetTopt
();
Topt
=
tdp
->
GetTopt
();
Db = (char*)tdp->GetDB();
Db
=
(
char
*
)
tdp
->
GetTabschema
();
Dsn = (char*)tdp->Uri;
}
// end of TDBJCL constructor
}
// end of TDBJCL constructor
/***********************************************************************/
/***********************************************************************/
...
@@ -1451,8 +1449,7 @@ TDBJCL::TDBJCL(PMGODEF tdp) : TDBCAT(tdp)
...
@@ -1451,8 +1449,7 @@ TDBJCL::TDBJCL(PMGODEF tdp) : TDBCAT(tdp)
/***********************************************************************/
/***********************************************************************/
PQRYRES
TDBGOL
::
GetResult
(
PGLOBAL
g
)
PQRYRES
TDBGOL
::
GetResult
(
PGLOBAL
g
)
{
{
return
JSONColumns(g, Db, Dsn
, Topt, false);
return
MGOColumns
(
g
,
Db
,
Topt
,
false
);
}
// end of GetResult
}
// end of GetResult
#endif // 0
/* -------------------------- End of mongo --------------------------- */
/* -------------------------- End of mongo --------------------------- */
storage/connect/tabmgo.h
View file @
f3452fcd
...
@@ -110,7 +110,7 @@ class INCOL : public BLOCK {
...
@@ -110,7 +110,7 @@ class INCOL : public BLOCK {
};
// end of INCOL;
};
// end of INCOL;
/***********************************************************************/
/***********************************************************************/
/* This is the MongoDB
Access Method class declaration.
*/
/* This is the MongoDB
Table Type class declaration.
*/
/* The table is a collection, each record being a document. */
/* The table is a collection, each record being a document. */
/***********************************************************************/
/***********************************************************************/
class
DllExport
TDBMGO
:
public
TDBEXT
{
class
DllExport
TDBMGO
:
public
TDBEXT
{
...
@@ -213,7 +213,6 @@ class DllExport MGOCOL : public EXTCOL {
...
@@ -213,7 +213,6 @@ class DllExport MGOCOL : public EXTCOL {
char
*
Mbuf
;
// The Mini buffer
char
*
Mbuf
;
// The Mini buffer
};
// end of class MGOCOL
};
// end of class MGOCOL
#if 0
/***********************************************************************/
/***********************************************************************/
/* This is the class declaration for the MONGO catalog table. */
/* This is the class declaration for the MONGO catalog table. */
/***********************************************************************/
/***********************************************************************/
...
@@ -229,6 +228,4 @@ class DllExport TDBGOL : public TDBCAT {
...
@@ -229,6 +228,4 @@ class DllExport TDBGOL : public TDBCAT {
// Members
// Members
PTOS
Topt
;
PTOS
Topt
;
char
*
Db
;
char
*
Db
;
char *Dsn;
};
// end of class TDBGOL
};
// end of class TDBGOL
#endif // 0
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