async def index_for_puzzle_hash(self, puzzle_hash: bytes32) -> Optional[uint32]:
    '\n        Returns the derivation path for the puzzle_hash.\n        Returns None if not present.\n        '
    cursor = (await self.db_connection.execute('SELECT * from derivation_paths WHERE puzzle_hash=?', (puzzle_hash.hex(),)))
    row = (await cursor.fetchone())
    (await cursor.close())
    if (row is not None):
        return uint32(row[0])
    return None
Returns the derivation path for the puzzle_hash.
Returns None if not present.
async def index_for_puzzle_hash(self, puzzle_hash: bytes32) -> Optional[uint32]:
    '\n        Returns the derivation path for the puzzle_hash.\n        Returns None if not present.\n        '
    cursor = (await self.db_connection.execute('SELECT * from derivation_paths WHERE puzzle_hash=?', (puzzle_hash.hex(),)))
    row = (await cursor.fetchone())
    (await cursor.close())
    if (row is not None):
        return uint32(row[0])
    return None