Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit f5be1aa

Browse files
author
Кирилл Безуглый
committed
feat: add box_schema_version and box_session_id ffi
1 parent 32aa392 commit f5be1aa

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- `tlua::Push` trait implementations for `OsString`, `OsStr`, `Path`, `PathBuf`
88
- `tlua::LuaRead` trait implementations for `OsString`, `PathBuf`
99
- tlua::LuaTable::metatable which is a better alternative to the existing `tlua::LuaTable::get_or_create_metatable`
10+
- `ffi::tarantool::box_schema_version` and `ffi::tarantool::box_session_id` functions
1011

1112
### Changed
1213

tarantool/src/ffi/tarantool.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,9 +1347,17 @@ extern "C" {
13471347
pub fn cbus_process(endpoint: *mut c_void);
13481348
}
13491349

1350+
// Schema.
1351+
extern "C" {
1352+
/// Returns the current version of the database schema.
1353+
pub fn box_schema_version() -> u64;
1354+
}
1355+
13501356
// Session.
13511357
#[cfg(feature = "picodata")]
13521358
extern "C" {
1359+
/// Returns the unique identifier (ID) for the current session.
1360+
pub fn box_session_id() -> u64;
13531361
pub fn box_session_user_id(uid: *mut u32) -> c_int;
13541362
pub fn box_effective_user_id() -> u32;
13551363
pub fn box_session_su(uid: u32) -> c_int;

0 commit comments

Comments
 (0)