Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Rocksdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
Python Rocksdb
Commits
f0e0512a
Commit
f0e0512a
authored
11 years ago
by
hofmockel
Browse files
Options
Downloads
Patches
Plain Diff
Add definitions to wrap BackupEngine
parent
81833395
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rocksdb/backup.pxd
+35
-0
35 additions, 0 deletions
rocksdb/backup.pxd
rocksdb/env.pxd
+5
-0
5 additions, 0 deletions
rocksdb/env.pxd
with
40 additions
and
0 deletions
rocksdb/backup.pxd
0 → 100644
+
35
−
0
View file @
f0e0512a
from
libcpp
cimport
bool
as
cpp_bool
from
libcpp.string
cimport
string
from
libcpp.vector
cimport
vector
from
libc.stdint
cimport
uint32_t
from
libc.stdint
cimport
int64_t
from
libc.stdint
cimport
uint64_t
from
status
cimport
Status
from
db
cimport
DB
from
env
cimport
Env
cdef
extern
from
"
utilities/backupable_db.h
"
namespace
"
rocksdb
"
:
ctypedef
uint32_t
BackupID
cdef
cppclass
BackupableDBOptions
:
BackupableDBOptions
(
const
string
&
backup_dir
)
cdef
struct
BackupInfo
:
BackupID
backup_id
int64_t
timestamp
uint64_t
size
cdef
cppclass
BackupEngine
:
Status
CreateNewBackup
(
DB
*
,
cpp_bool
)
nogil
except
+
Status
PurgeOldBackups
(
uint32_t
)
nogil
except
+
Status
DeleteBackup
(
BackupID
)
nogil
except
+
void
StopBackup
()
nogil
except
+
void
GetBackupInfo
(
vector
[
BackupInfo
]
*
)
nogil
except
+
Status
RestoreDBFromBackup
(
BackupID
,
string
&
,
string
&
)
nogil
except
+
Status
RestoreDBFromLatestBackup
(
string
&
,
string
&
)
nogil
except
+
void
DeleteBackupsNewerThan
(
uint64_t
)
nogil
except
+
cdef
BackupEngine
*
NewBackupEngine
"
rocksdb::BackupEngine::NewBackupEngine
"
(
Env
*
,
BackupableDBOptions
&
)
This diff is collapsed.
Click to expand it.
rocksdb/env.pxd
0 → 100644
+
5
−
0
View file @
f0e0512a
cdef
extern
from
"
rocksdb/env.h
"
namespace
"
rocksdb
"
:
cdef
cppclass
Env
:
Env
()
cdef
Env
*
Env_Default
"
rocksdb::Env::Default
"
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment