_flashdb.pyi 587 B

123456789101112131415161718192021222324252627282930
  1. class kvdb_t:
  2. ...
  3. class KVDB_CTRL:
  4. SET_SEC_SIZE: int
  5. GET_SEC_SIZE: int
  6. SET_LOCK: int
  7. SET_UNLOCK: int
  8. SET_FILE_MODE: int
  9. SET_MAX_SIZE: int
  10. SET_NOT_FORMAT: int
  11. def __init__(self): ...
  12. class KVDB:
  13. def __init__(self, name: str, path: str, default_kv: dict,
  14. user_data: any): ...
  15. def control(self, cmd: int, arg: any) -> int: ...
  16. def deinit(self): ...
  17. def set_blob(self, key: str, blob: any) -> int: ...
  18. def get_blob(self, key: str, size: int) -> list: ...
  19. def print(self): ...
  20. def __del__(self): ...