class_docstr: An index-based key/value database based on :obj:`sqlite3`.
  
  .. note::
      This database implementation requires the :obj:`sqlite3` package.
  
  Args:
      path (str): The path to where the database should be saved.
      name (str): The name of the table to save the data to.
      schema (Any or Tuple[Any] or Dict[str, Any], optional): The schema of
          the input data.
          Can take :obj:`int`, :obj:`float`, :obj:`str`, :obj:`object`, or a
          dictionary with :obj:`dtype` and :obj:`size` keys (for specifying
          tensor data) as input, and can be nested as a tuple or dictionary.
          Specifying the schema will improve efficiency, since by default the
          database will use python pickling for serializing and
          deserializing. (default: :obj:`object`)
class_docstr_tok: ["An","index-based","key\/value","database","based","on",":","obj",":","`","sqlite3","`",".","..","note",":",":","This","database","implementation","requires","the",":","obj",":","`","sqlite3","`","package",".","Args",":","path","(","str",")",":","The","path","to","where","the","database","should","be","saved",".","name","(","str",")",":","The","name","of","the","table","to","save","the","data","to",".","schema","(","Any","or","Tuple","[","Any","]","or","Dict","[","str",",","Any","]",",","optional",")",":","The","schema","of","the","input","data",".","Can","take",":","obj",":","`","int","`",",",":","obj",":","`","float","`",",",":","obj",":","`","str","`",",",":","obj",":","`","object","`",",","or","a","dictionary","with",":","obj",":","`","dtype","`","and",":","obj",":","`","size","`","keys","(","for","specifying","tensor","data",")","as","input",",","and","can","be","nested","as","a","tuple","or","dictionary",".","Specifying","the","schema","will","improve","efficiency",",","since","by","default","the","database","will","use","python","pickling","for","serializing","and","deserializing",".","(","default",":",":","obj",":","`","object","`",")"]
code: def __len__(self) -> int:
      query = f"SELECT COUNT(*) FROM {self.name}"
      self.cursor.execute(query)
      return self.cursor.fetchone()[0]
  
imports: import pickle
  import warnings
  from abc import ABC, abstractmethod
  from dataclasses import dataclass
  from functools import cached_property
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
  from uuid import uuid4
  import torch
  from torch import Tensor
  from tqdm import tqdm
  from torch_geometric import EdgeIndex
  from torch_geometric.edge_index import SortOrder
  from torch_geometric.utils.mixin import CastMixin
label_desc: Use image node_id 10 for calling the SQLiteDatabase obj's underlying member method code with example usage: obj.__len__() and returns: self