c09b175c76
* [T1006-MG < T1017-MG] Add LBA checks to all read procedures in C API (#515) * Initial Impl * NextPermittedEdge introduced * revert moving constructor to cpp * edge from and edge to methods expanded with lba check * minor fix * added check to path expand procedure * Added integration tests for read query procedures * additional check * changed iterator type to reference * comments from pr Co-authored-by: Josip Mrden <josip.mrden@memgraph.io> * [T1006-MG < T1018-MG] Add LBA checks to all update procedures in C API (#516) * Initial Impl * NextPermittedEdge introduced * revert moving constructor to cpp * edge from and edge to methods expanded with lba check * minor fix * extended update methods * added check to path expand procedure * Added integration tests for read query procedures * Added integration tests for update query modules * additional check * changed iterator type to reference * fixed bug in Update property for node; fixed 2 e2e tests * replaced enum Co-authored-by: Josip Mrden <josip.mrden@memgraph.io> * [T1006-MG < T1019-MG] Add LBA checks to all Create and Delete procedures in C API (#517) * Initial Impl * NextPermittedEdge introduced * revert moving constructor to cpp * edge from and edge to methods expanded with lba check * minor fix * extended update methods * initial implementation * added check to path expand procedure * Added integration tests for read query procedures * Added integration tests for update query modules * Added unit tests for creation of vertex, adding and removing vertex label * additional check * changed iterator type to reference * Added unit tests for create edge * Corrected query module in create edge * fixed bug in Update property for node; fixed 2 e2e tests * fixed merge errors * Expanded FineGrainedAuthChecker with HasGlobalPermissionOnVertices and HasGlobalPermissionOnEdges * Removed two wrong checks; Added two global checks * return null added * introduced new mgp_error value * fixed endless loop * replaced enum * intermediate * tests updated * PermissionDeniedError -> AuthorizationError rename * rename in enum permission_denied error -> authorization error * mgp_vertex_remove_label check improved * quotes changed; order of imports fixed * string constant introduced * import fixed * yaml format Co-authored-by: Josip Mrden <josip.mrden@memgraph.io> Co-authored-by: Josip Mrden <josip.mrden@memgraph.io>
260 lines
3.8 KiB
Python
260 lines
3.8 KiB
Python
from typing import Any
|
|
|
|
|
|
class MgpIterable:
|
|
def get() -> Any:
|
|
pass
|
|
|
|
def next() -> Any:
|
|
pass
|
|
|
|
|
|
class Vertex:
|
|
def is_valid() -> bool: # type: ignore
|
|
pass
|
|
|
|
def underlying_graph_is_mutable() -> bool: # type: ignore
|
|
pass
|
|
|
|
def iter_properties() -> MgpIterable: # type: ignore
|
|
pass
|
|
|
|
def get_property(self, property_name: str) -> "Property": # type: ignore
|
|
pass
|
|
|
|
def set_property(self, property_name: str, value: Any) -> "Property": # type: ignore
|
|
pass
|
|
|
|
def get_id() -> "VertexId": # type: ignore
|
|
pass
|
|
|
|
def label_at(self, index: int) -> "Label": # type: ignore
|
|
pass
|
|
|
|
def labels_count() -> int: # type: ignore
|
|
pass
|
|
|
|
def add_label(self, label: Any):
|
|
pass
|
|
|
|
def remove_label(self, label: Any):
|
|
pass
|
|
|
|
def iter_in_edges() -> MgpIterable: # type: ignore
|
|
pass
|
|
|
|
def iter_out_edges() -> MgpIterable: # type: ignore
|
|
pass
|
|
|
|
|
|
class Edge:
|
|
def is_valid() -> bool: # type: ignore
|
|
pass
|
|
|
|
def underlying_graph_is_mutable() -> bool: # type: ignore
|
|
pass
|
|
|
|
def iter_properties() -> MgpIterable: # type: ignore
|
|
pass
|
|
|
|
def get_property(self, property_name: str) -> "Property": # type: ignore
|
|
pass
|
|
|
|
def set_property(self, property_name: str, valuse: Any) -> "Property": # type: ignore
|
|
pass
|
|
|
|
def get_type_name() -> str: # type: ignore
|
|
pass
|
|
|
|
def get_id() -> "EdgeId": # type: ignore
|
|
pass
|
|
|
|
def from_vertex() -> Vertex: # type: ignore
|
|
pass
|
|
|
|
def to_vertex() -> Vertex: # type: ignore
|
|
pass
|
|
|
|
|
|
class Path:
|
|
def is_valid() -> bool: # type: ignore
|
|
pass
|
|
|
|
@staticmethod
|
|
def make_with_start(vertex: Vertex) -> "Path": # type: ignore
|
|
pass
|
|
|
|
|
|
class Graph:
|
|
def is_valid() -> bool: # type: ignore
|
|
pass
|
|
|
|
|
|
class CypherType:
|
|
pass
|
|
|
|
|
|
class Message:
|
|
def is_valid() -> bool: # type: ignore
|
|
pass
|
|
|
|
def source_type() -> str: # type: ignore
|
|
pass
|
|
|
|
def topic_name() -> str: # type: ignore
|
|
pass
|
|
|
|
def key() -> bytes: # type: ignore
|
|
pass
|
|
|
|
def timestamp() -> int: # type: ignore
|
|
pass
|
|
|
|
def offset() -> int: # type: ignore
|
|
pass
|
|
|
|
def payload() -> bytes: # type: ignore
|
|
pass
|
|
|
|
|
|
class Messages:
|
|
def is_valid() -> bool: # type: ignore
|
|
pass
|
|
|
|
def message_at(self, id: int) -> Message: # type: ignore
|
|
pass
|
|
|
|
def total_messages() -> int: # type: ignore
|
|
pass
|
|
|
|
|
|
class UnknownError(Exception):
|
|
pass
|
|
|
|
|
|
class UnableToAllocateError(Exception):
|
|
pass
|
|
|
|
|
|
class InsufficientBufferError(Exception):
|
|
pass
|
|
|
|
|
|
class OutOfRangeError(Exception):
|
|
pass
|
|
|
|
|
|
class LogicErrorError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
class DeletedObjectError(Exception):
|
|
pass
|
|
|
|
|
|
class InvalidArgumentError(Exception):
|
|
pass
|
|
|
|
|
|
class KeyAlreadyExistsError(Exception):
|
|
pass
|
|
|
|
|
|
class ImmutableObjectError(Exception):
|
|
pass
|
|
|
|
|
|
class ValueConversionError(Exception):
|
|
pass
|
|
|
|
|
|
class SerializationError(Exception):
|
|
pass
|
|
|
|
|
|
class AuthorizationError(Exception):
|
|
pass
|
|
|
|
|
|
def type_nullable(elem: Any):
|
|
pass
|
|
|
|
|
|
def type_list(elem: Any):
|
|
pass
|
|
|
|
|
|
def type_bool():
|
|
pass
|
|
|
|
|
|
def type_string():
|
|
pass
|
|
|
|
|
|
def type_int():
|
|
pass
|
|
|
|
|
|
def type_float():
|
|
pass
|
|
|
|
|
|
def type_number():
|
|
pass
|
|
|
|
|
|
def type_map():
|
|
pass
|
|
|
|
|
|
def type_node():
|
|
pass
|
|
|
|
|
|
def type_relationship():
|
|
pass
|
|
|
|
|
|
def type_path():
|
|
pass
|
|
|
|
|
|
def type_date():
|
|
pass
|
|
|
|
|
|
def type_local_time():
|
|
pass
|
|
|
|
|
|
def type_local_date_time():
|
|
pass
|
|
|
|
|
|
def type_duration():
|
|
pass
|
|
|
|
|
|
def type_any():
|
|
pass
|
|
|
|
|
|
class _MODULE:
|
|
@staticmethod
|
|
def add_read_procedure(wrapper):
|
|
pass
|
|
|
|
@staticmethod
|
|
def add_write_procedure(wrapper):
|
|
pass
|
|
|
|
@staticmethod
|
|
def add_transformation(wrapper):
|
|
pass
|
|
|
|
@staticmethod
|
|
def add_function(wrapper):
|
|
pass
|