Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
14ac33fc
Commit
14ac33fc
authored
Oct 29, 2017
by
Casualet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move function serilize to DBMeta
parent
1ddccdb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
dbobject.hh
main/dbobject.hh
+2
-2
schema.cc
main/schema.cc
+1
-0
schema.hh
main/schema.hh
+1
-0
No files found.
main/dbobject.hh
View file @
14ac33fc
...
...
@@ -125,7 +125,7 @@ public:
// FIXME: This should possibly be a part of DBMeta.
// > Parent will definitely be DBMeta.
// > Parent-Child semantics aren't really added until DBMeta.
virtual
std
::
string
serialize
(
const
DBObject
&
parent
)
const
=
0
;
};
class
Connect
;
...
...
@@ -159,7 +159,7 @@ public:
applyToChildren
(
std
::
function
<
bool
(
const
DBMeta
&
)
>
)
const
=
0
;
/*traverse the map to get the key for the conresponding child(reference MappedDBMeta)*/
virtual
AbstractMetaKey
const
&
getKey
(
const
DBMeta
&
child
)
const
=
0
;
virtual
std
::
string
serialize
(
const
DBObject
&
parent
)
const
=
0
;
protected
:
std
::
vector
<
DBMeta
*>
doFetchChildren
(
const
std
::
unique_ptr
<
Connect
>
&
e_conn
,
...
...
main/schema.cc
View file @
14ac33fc
...
...
@@ -527,6 +527,7 @@ std::vector<FieldMeta *> TableMeta::orderedFieldMetas() const
return
v
;
}
/*use fm->hasDefault() to test whether the filed has default value*/
std
::
vector
<
FieldMeta
*>
TableMeta
::
defaultedFieldMetas
()
const
{
std
::
vector
<
FieldMeta
*>
v
;
...
...
main/schema.hh
View file @
14ac33fc
...
...
@@ -184,6 +184,7 @@ public:
std
::
string
serialize
(
const
DBObject
&
parent
)
const
;
std
::
string
getAnonTableName
()
const
;
std
::
vector
<
FieldMeta
*>
orderedFieldMetas
()
const
;
/* return fieldmeta of fields that has default value */
std
::
vector
<
FieldMeta
*>
defaultedFieldMetas
()
const
;
TYPENAME
(
"tableMeta"
)
std
::
string
getAnonIndexName
(
const
std
::
string
&
index_name
,
...
...
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