pub struct WorkspaceService { /* private fields */ }Expand description
workspace 资源服务(中间级,绑定 workspace_id)
Implementations§
Source§impl WorkspaceService
impl WorkspaceService
Sourcepub fn new(config: Arc<PlatformConfig>, workspace_id: impl Into<String>) -> Self
pub fn new(config: Arc<PlatformConfig>, workspace_id: impl Into<String>) -> Self
创建新的 workspace 服务
Sourcepub fn table(&self, table_name: impl Into<String>) -> TableService
pub fn table(&self, table_name: impl Into<String>) -> TableService
workspace.table 子资源
Sourcepub fn view(&self, view_name: impl Into<String>) -> ViewService
pub fn view(&self, view_name: impl Into<String>) -> ViewService
workspace.view 子资源
Sourcepub fn enum_mod(&self) -> EnumModService
pub fn enum_mod(&self) -> EnumModService
workspace.enum_mod 子资源
Sourcepub fn sql_commands(&self, sql: impl Into<String>) -> SqlCommandsRequestBuilder
pub fn sql_commands(&self, sql: impl Into<String>) -> SqlCommandsRequestBuilder
执行 SQL 命令
Trait Implementations§
Source§impl Clone for WorkspaceService
impl Clone for WorkspaceService
Source§fn clone(&self) -> WorkspaceService
fn clone(&self) -> WorkspaceService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WorkspaceService
impl !UnwindSafe for WorkspaceService
impl Freeze for WorkspaceService
impl Send for WorkspaceService
impl Sync for WorkspaceService
impl Unpin for WorkspaceService
impl UnsafeUnpin for WorkspaceService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more