refering different tables that are not directly FK6
This commit is contained in:
2
client
2
client
Submodule client updated: 07c6efcc22...382c704a08
@@ -133,6 +133,9 @@ message PostTableDataResponse {
|
|||||||
|
|
||||||
// The id of the inserted row.
|
// The id of the inserted row.
|
||||||
int64 inserted_id = 3;
|
int64 inserted_id = 3;
|
||||||
|
|
||||||
|
// Rows whose stored script values changed through dependency propagation.
|
||||||
|
repeated RecomputedRow recomputed_rows = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// One row in a bulk insert request.
|
// One row in a bulk insert request.
|
||||||
@@ -199,6 +202,14 @@ message PutTableDataResponse {
|
|||||||
|
|
||||||
// The id of the updated row.
|
// The id of the updated row.
|
||||||
int64 updated_id = 3;
|
int64 updated_id = 3;
|
||||||
|
|
||||||
|
// Rows whose stored script values changed through dependency propagation.
|
||||||
|
repeated RecomputedRow recomputed_rows = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message RecomputedRow {
|
||||||
|
string table_name = 1;
|
||||||
|
int64 row_id = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Soft-delete a single row.
|
// Soft-delete a single row.
|
||||||
@@ -217,6 +228,9 @@ message DeleteTableDataRequest {
|
|||||||
message DeleteTableDataResponse {
|
message DeleteTableDataResponse {
|
||||||
// True if a row was marked deleted (id existed and was not already deleted).
|
// True if a row was marked deleted (id existed and was not already deleted).
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
|
|
||||||
|
// Rows whose stored script values changed through dependency propagation.
|
||||||
|
repeated RecomputedRow recomputed_rows = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch a single non-deleted row by id.
|
// Fetch a single non-deleted row by id.
|
||||||
|
|||||||
Binary file not shown.
@@ -47,7 +47,7 @@ pub struct PostTableDataRequest {
|
|||||||
>,
|
>,
|
||||||
}
|
}
|
||||||
/// Insert response.
|
/// Insert response.
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct PostTableDataResponse {
|
pub struct PostTableDataResponse {
|
||||||
/// True if the insert succeeded.
|
/// True if the insert succeeded.
|
||||||
#[prost(bool, tag = "1")]
|
#[prost(bool, tag = "1")]
|
||||||
@@ -58,6 +58,9 @@ pub struct PostTableDataResponse {
|
|||||||
/// The id of the inserted row.
|
/// The id of the inserted row.
|
||||||
#[prost(int64, tag = "3")]
|
#[prost(int64, tag = "3")]
|
||||||
pub inserted_id: i64,
|
pub inserted_id: i64,
|
||||||
|
/// Rows whose stored script values changed through dependency propagation.
|
||||||
|
#[prost(message, repeated, tag = "4")]
|
||||||
|
pub recomputed_rows: ::prost::alloc::vec::Vec<RecomputedRow>,
|
||||||
}
|
}
|
||||||
/// One row in a bulk insert request.
|
/// One row in a bulk insert request.
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
@@ -125,7 +128,7 @@ pub struct PutTableDataRequest {
|
|||||||
>,
|
>,
|
||||||
}
|
}
|
||||||
/// Update response.
|
/// Update response.
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct PutTableDataResponse {
|
pub struct PutTableDataResponse {
|
||||||
/// True if the update succeeded (or no-op on empty data).
|
/// True if the update succeeded (or no-op on empty data).
|
||||||
#[prost(bool, tag = "1")]
|
#[prost(bool, tag = "1")]
|
||||||
@@ -136,6 +139,16 @@ pub struct PutTableDataResponse {
|
|||||||
/// The id of the updated row.
|
/// The id of the updated row.
|
||||||
#[prost(int64, tag = "3")]
|
#[prost(int64, tag = "3")]
|
||||||
pub updated_id: i64,
|
pub updated_id: i64,
|
||||||
|
/// Rows whose stored script values changed through dependency propagation.
|
||||||
|
#[prost(message, repeated, tag = "4")]
|
||||||
|
pub recomputed_rows: ::prost::alloc::vec::Vec<RecomputedRow>,
|
||||||
|
}
|
||||||
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
|
pub struct RecomputedRow {
|
||||||
|
#[prost(string, tag = "1")]
|
||||||
|
pub table_name: ::prost::alloc::string::String,
|
||||||
|
#[prost(int64, tag = "2")]
|
||||||
|
pub row_id: i64,
|
||||||
}
|
}
|
||||||
/// Soft-delete a single row.
|
/// Soft-delete a single row.
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
@@ -151,11 +164,14 @@ pub struct DeleteTableDataRequest {
|
|||||||
pub record_id: i64,
|
pub record_id: i64,
|
||||||
}
|
}
|
||||||
/// Soft-delete response.
|
/// Soft-delete response.
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct DeleteTableDataResponse {
|
pub struct DeleteTableDataResponse {
|
||||||
/// True if a row was marked deleted (id existed and was not already deleted).
|
/// True if a row was marked deleted (id existed and was not already deleted).
|
||||||
#[prost(bool, tag = "1")]
|
#[prost(bool, tag = "1")]
|
||||||
pub success: bool,
|
pub success: bool,
|
||||||
|
/// Rows whose stored script values changed through dependency propagation.
|
||||||
|
#[prost(message, repeated, tag = "2")]
|
||||||
|
pub recomputed_rows: ::prost::alloc::vec::Vec<RecomputedRow>,
|
||||||
}
|
}
|
||||||
/// Fetch a single non-deleted row by id.
|
/// Fetch a single non-deleted row by id.
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
|
|||||||
2
server
2
server
Submodule server updated: a7af82a5dd...40d76eb75c
Reference in New Issue
Block a user