async def get_derivation_record(self, index: uint32, wallet_id: uint32) -> Optional[DerivationRecord]:
    '\n        Returns the derivation record by index and wallet id.\n        '
    cursor = (await self.db_connection.execute('SELECT * FROM derivation_paths WHERE derivation_index=? and wallet_id=?;', (index, wallet_id)))
    row = (await cursor.fetchone())
    (await cursor.close())
    if ((row is not None) and (row[0] is not None)):
        return DerivationRecord(uint32(row[0]), bytes32.fromhex(row[2]), G1Element.from_bytes(bytes.fromhex(row[1])), WalletType(row[3]), uint32(row[4]))
    return None
Returns the derivation record by index and wallet id.
async def get_derivation_record(self, index: uint32, wallet_id: uint32) -> Optional[DerivationRecord]:
    '\n        \n        '
    cursor = (await self.db_connection.execute('SELECT * FROM derivation_paths WHERE derivation_index=? and wallet_id=?;', (index, wallet_id)))
    row = (await cursor.fetchone())
    (await cursor.close())
    if ((row is not None) and (row[0] is not None)):
        return DerivationRecord(uint32(row[0]), bytes32.fromhex(row[2]), G1Element.from_bytes(bytes.fromhex(row[1])), WalletType(row[3]), uint32(row[4]))
    return None